From 914d88ca9d89665bb8dc2d4dddba63787b3be043 Mon Sep 17 00:00:00 2001 From: Mike Rosseel Date: Fri, 26 Jan 2024 17:05:22 +0100 Subject: [PATCH] crash fixes --- python/PiFinder/ui/catalog.py | 2 +- python/PiFinder/ui/locate.py | 2 +- python/PiFinder/ui/nearby.py | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python/PiFinder/ui/catalog.py b/python/PiFinder/ui/catalog.py index 845ffba4..44fb8bde 100644 --- a/python/PiFinder/ui/catalog.py +++ b/python/PiFinder/ui/catalog.py @@ -230,7 +230,7 @@ def push_near(self, obj_amount): # Filter ALL the catalogs one last time self.catalog_tracker.filter() - cof = ClosestObjectFinder() + cof = ClosestObjectsFinder() near_catalog, _ = cof.get_closest_objects( solution["RA"], solution["Dec"], diff --git a/python/PiFinder/ui/locate.py b/python/PiFinder/ui/locate.py index 639c76bc..6e46ea3a 100644 --- a/python/PiFinder/ui/locate.py +++ b/python/PiFinder/ui/locate.py @@ -109,7 +109,7 @@ def key_b(self): else: self.message("No History", 1) - if self.target_index != None: + if self.target_index is not None: self.ui_state.set_target_to_active_list_index(self.target_index) self.update_object_text() diff --git a/python/PiFinder/ui/nearby.py b/python/PiFinder/ui/nearby.py index 9bd63bce..c60bba9b 100644 --- a/python/PiFinder/ui/nearby.py +++ b/python/PiFinder/ui/nearby.py @@ -418,3 +418,9 @@ def key_down(self): self.current_line = -1 else: self.current_line = (self.current_line + 1) % self.current_nr_objects + + def push_cat(self, obj_amount): + self.ui_catalog.push_cat(obj_amount) + + def push_near(self, obj_amount): + self.ui_catalog.push_near(obj_amount)