Skip to content

Commit

Permalink
Merge pull request #23 from yusukeaso-astron/main
Browse files Browse the repository at this point in the history
reflect update of main to radesys
  • Loading branch information
yusukeaso-astron authored Jan 10, 2025
2 parents 24365f2 + c1267b4 commit 9cb2169
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plotastrodata/analysis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ def binning(self, width: list[int, int, int] = [1, 1, 1]):
size = list(np.shape(d))
newsize = size // np.array(width, dtype=int)
grid = [None, self.v, self.y, self.x]
if self.y is None:
grid[1], grid[2] = grid[2], grid[1] # for PV diagram
for n in range(4):
if width[n] == 1:
continue
Expand All @@ -226,8 +224,6 @@ def binning(self, width: list[int, int, int] = [1, 1, 1]):
grid[n] = t / width[n]
d = np.moveaxis(newdata, 0, n) / width[n]
self.data = np.squeeze(d)
if self.y is None:
grid[1], grid[2] = grid[2], grid[1]
_, self.v, self.y, self.x = grid

def centering(self, includexy: bool = True, includev: bool = False):
Expand Down Expand Up @@ -498,7 +494,7 @@ def writetofits(self, fitsimage: str = 'out.fits', header: dict = {}):
"""
if self.pv:
print('writetofits does not support PV diagram yet.')
return False
return

h = {}
cx, cy = (0, 0) if self.center is None else coord2xy(self.center)
Expand Down

0 comments on commit 9cb2169

Please sign in to comment.