Skip to content

Commit

Permalink
Merge pull request #144 from funkelab/bugfix-seg-page-none
Browse files Browse the repository at this point in the history
Bugfix: Get segmentation from page only if it exists
  • Loading branch information
cmalinmayor authored Feb 19, 2025
2 parents 4779c40 + 65fa669 commit d4d778a
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,12 @@ def _finish(self) -> None:

if self.menu_widget.segmentation_checkbox.isChecked():
self.segmentation_page._load_segmentation()
segmentation = self.segmentation_page.segmentation
else:
self.segmentation_page.segmentation = None
segmentation = None

try:
self.tracks = tracks_from_df(
df, self.segmentation_page.segmentation, scale, features
)
self.tracks = tracks_from_df(df, segmentation, scale, features)

except ValueError as e:
QMessageBox.critical(self, "Error", f"Failed to load tracks: {e}")
Expand Down

0 comments on commit d4d778a

Please sign in to comment.