From b928b49a45f04cbb47cc1ce779c8dbf067276e3f Mon Sep 17 00:00:00 2001 From: Steffen Hirtle Date: Tue, 26 Jul 2022 17:35:00 +0200 Subject: [PATCH 1/3] enabled high resolution setting for MacOS --- GraXpert-macos-x86_64.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GraXpert-macos-x86_64.spec b/GraXpert-macos-x86_64.spec index fd6af37..119a99b 100644 --- a/GraXpert-macos-x86_64.spec +++ b/GraXpert-macos-x86_64.spec @@ -52,6 +52,7 @@ app = BUNDLE(coll, icon='./img/Icon.ico', bundle_identifier=None, info_plist={ - 'CFBundleShortVersionString': 'RELEASE (SNAPSHOT)' + 'CFBundleShortVersionString': 'RELEASE (SNAPSHOT)', + 'NSHighResolutionCapable': 'True' } ) \ No newline at end of file From c477358c4ee94bb32baeed51669d6b5d6b28b1c7 Mon Sep 17 00:00:00 2001 From: Steffen Hirtle Date: Thu, 20 Oct 2022 20:36:46 +0200 Subject: [PATCH 2/3] Added entry to XisfProperties to avoid bug in xisf.write --- src/astroimage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/astroimage.py b/src/astroimage.py index b05839a..b861e1a 100644 --- a/src/astroimage.py +++ b/src/astroimage.py @@ -44,6 +44,10 @@ def set_from_file(self, directory): self.xisf_metadata = xisf.get_file_metadata() self.image_metadata = xisf.get_images_metadata()[0] img_array = xisf.read_image(0) + + entry = {'id': 'BackgroundExtraction', 'type': 'String', 'value': 'GraXpert'} + self.image_metadata['XISFProperties'] = {"ProcessingHistory": entry} + else: img_array = io.imread(directory) From 4a08f8ccba6f5affe22f1fa07a320fed31a04a64 Mon Sep 17 00:00:00 2001 From: Steffen Hirtle Date: Thu, 20 Oct 2022 22:01:46 +0200 Subject: [PATCH 3/3] Changed to older version of skimage and scipy --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index ec92bc6..e343ae7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ astropy hdpitkinter Pillow pykrige -scikit-image -scipy +scikit-image == 0.19.0 +scipy == 1.8.1 screeninfo xisf \ No newline at end of file