Skip to content

Commit

Permalink
removed sensitivity to roworder keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffenhir committed Jun 29, 2022
1 parent a8b19e7 commit ee233cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/astroimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def update_display(self):
img_display = self.stretch()
img_display = img_display*255

if self.roworder == "TOP-DOWN":
img_display = np.flip(img_display, axis=0)
#if self.roworder == "TOP-DOWN":
# img_display = np.flip(img_display, axis=0)

if(img_display.shape[2] == 1):
self.img_display = Image.fromarray(img_display[:,:,0].astype(np.uint8))
Expand All @@ -77,8 +77,8 @@ def update_display(self):
def update_display_from_array(self, img_display):
img_display = img_display*255

if self.roworder == "TOP-DOWN":
img_display = np.flip(img_display, axis=0)
#if self.roworder == "TOP-DOWN":
# img_display = np.flip(img_display, axis=0)

if(img_display.shape[2] == 1):
self.img_display = Image.fromarray(img_display[:,:,0].astype(np.uint8))
Expand Down

0 comments on commit ee233cc

Please sign in to comment.