Update motile_toolbox version to v0.4.0 #117
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a minimal working update for our new toolbox version (no hypothesis dimension, unique segmentation IDs and int node ids). I did not actually update the visualization code to use the unique seg ids - it still relabels the segmentation before viewing. All the backend tests pass (in fact, most of the code changes were updating the tests to use the new integer node ids). I tested the UI components, but only a little.
I still want to implement a function that will check if the input labels layer has repeat IDs across time and relabels them (with the already implemented function in the toolbox), to make sure we can still input e.g. cellpose labels that have been predicted independently for each time point.
Edit: I added the function, and a function that will check if there are duplicate labels across time. Right now that lives in the RunEditor and just compares the labels of the first two frames of the segmentation, to avoid looping over the whole time series.