Skip to content

Commit

Permalink
crash fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrosseel committed Jan 26, 2024
1 parent 2507dd7 commit 914d88c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/PiFinder/ui/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion python/PiFinder/ui/locate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
6 changes: 6 additions & 0 deletions python/PiFinder/ui/nearby.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 914d88c

Please sign in to comment.