From ee233cc9eb15c40df0f5ec2c0a8bd7e88dbcab11 Mon Sep 17 00:00:00 2001 From: Steffen Hirtle Date: Wed, 29 Jun 2022 21:49:06 +0200 Subject: [PATCH] removed sensitivity to roworder keyword --- src/astroimage.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/astroimage.py b/src/astroimage.py index 0fd8ffb..57c8b42 100644 --- a/src/astroimage.py +++ b/src/astroimage.py @@ -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)) @@ -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))