Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of channel numbers in UI to prevent spurious errors #50

Merged
merged 4 commits into from
Aug 26, 2024

Conversation

alanocallaghan
Copy link
Collaborator

Resolve #47 and #48 I hope.

Change the GUI look a bit, making the "extra" options center-aligned with some padding.

Hopefully resolve the weirdness when the 3 color deconvolved channels would
count as selected, but not show up visually as selected, if switching from multiplex
to brightfield.

Change the handling of channels to read the channel information from the RDF spec
and enable/disable running/error messages appropriately.

Running models is disabled and a warning shown if:

  • the currently selected model doesn't support arbitrary channel numbers
  • the number of currently selected channels doesn't match the number the model wants

This means you can do funny stuff like:

  • select 3 channels in a multiplexed image and run a brightfield model on it
  • Run a brightfield model on the color deconvolved channels of an RGB image
  • Run a fluorescence model on brightfield (color deconvolved or RGB)
  • Support weird models like the 2 channel tissuenet one

Change the GUI look a bit, making the "extra" options center-aligned with some padding.

Hopefully resolve the weirdness when the 3 color deconvolved channels would
count as selected, but not show up visually as selected, if switching from multiplex
to brightfield.

Change the handling of channels to read the channel information from the RDF spec
and enable/disable running/error messages appropriately.

Running models is disabled and a warning shown if:

- the currently selected model doesn't support arbitrary channel numbers
- the number of currently selected channels doesn't match the number the model wants

This means you can do funny stuff like:

- select 3 channels in a multiplexed image and run a brightfield model on it
- Run a brightfield model on the color deconvolved channels of an RGB image
- Run a fluorescence model on brightfield (color deconvolved or RGB)
- Support weird models like the 2 channel tissuenet one
@petebankhead petebankhead merged commit 8244683 into main Aug 26, 2024
1 check passed
@petebankhead petebankhead deleted the ui-look-and-channel-handling branch August 26, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Channel selection sometimes selects all channels in a brightfield
2 participants