Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aperoll/widgets/centroid_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _display_table(self):
item = self._table[row][col]
if colname == "enable":
checkbox = self._q_table.cellWidget(row, col)
checkbox.setChecked(item)
checkbox.setChecked(bool(item))
else:
self._q_table.item(row, col).setText(
self.format[colname].format(item)
Expand Down
6 changes: 6 additions & 0 deletions aperoll/widgets/star_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,18 +664,22 @@ def set_onboard_attitude(self, attitude):
self.alternate_attitude = attitude

def enable_alternate_fov(self, enable=True):
enable = bool(enable)
self.state.enable_alternate_fov = enable
self.alternate_fov.setVisible(enable)

def show_alternate_fov(self, show=True):
show = bool(show)
if self.state.enable_alternate_fov:
self.alternate_fov.setVisible(show)

def enable_fov(self, enable=True):
enable = bool(enable)
self.state.enable_fov = enable
self.main_fov.setVisible(enable)

def show_fov(self, show=True):
show = bool(show)
if self.state.enable_fov:
self.main_fov.setVisible(show)

Expand All @@ -684,10 +688,12 @@ def set_centroids(self, centroids):
self.alternate_fov.set_centroids(centroids)

def enable_catalog(self, enable=True):
enable = bool(enable)
self.state.enable_catalog = enable
self.catalog.setVisible(enable)

def show_catalog(self, show=True):
show = bool(show)
if self.state.enable_catalog:
self.catalog.setVisible(show)

Expand Down