-
Notifications
You must be signed in to change notification settings - Fork 10
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
feature/scene-widget-additions #27
Conversation
Codecov Report
@@ Coverage Diff @@
## main #27 +/- ##
==========================================
+ Coverage 74.54% 83.05% +8.50%
==========================================
Files 7 5 -2
Lines 110 177 +67
==========================================
+ Hits 82 147 +65
- Misses 28 30 +2
Continue to review full report at Codecov.
|
Everything works, but I'm not 100% sold on the new features:
For me the default (box checked behavior) is odd. First, I was expecting that this setting would clear the selected scene from the scene list widget, so essentially pruning scenes that were already open. I was not expecting it to clear the image I just selected from the image layer list.
Again, for me this is a regression. When browsing files with multiple scenes, I want to have things grouped by scene, so that's the logical unit for me, not the channel. Worse yet, I anticipate that multiple scene files will frequently—typically?—have the same channels. In my case, they always have the same channels, so I get image layers:
Then I have no way of knowing what I'm looking at—what scene the image came from—because the scene name is not passed to the layer name. Anyhow, both of these features are likely to be very conditional on the specific use case. Some may prefer your default behavior, others—me!—may prefer mine. So if there is already to be a widget with some settings, then perhaps the channel behavior could also be controlled with a setting: |
First: very fair points. Second: if I added a checkbox for "Unpack channels" and left it unchecked by default would that be okay? If so I will do that and then set the defaults to "unchecked" and the default functionality will be your preferred method. |
Sounds good to me—any idea if these kind of checkbox settings can be preserved as preferences? Maybe @tlambert03 can chime in. Both boxes unchecked would be my preferred default, so I'm good to go, but someone else may prefer a default of both boxes check, so preserving the state, if possible, would be nice to have—perhaps down the road. |
Sorry for getting carried away at @psobolewskiPhD you taught me alot in opening this PR as to how to add more functionality to this plugin and now I can see a world where all image loading, regardless of single or many scene goes through this type of widget because it would allow the user to set all sorts of settings. The major ones would be: Anyway, the new default functionality is in. Will record a GIF in a second! |
With tests passing. If you could give this branch a test on some of your files I would greatly appreciate it. All of the test files aren't the "coolest" images. |
New gif of functionality here: https://github.com/AllenCellModeling/napari-aicsimageio/blob/psobolewskiPhD-feature/scene-widget/images/scene-selection.gif If all tests pass and I get the okay from you @psobolewskiPhD then will merge and release a new version. |
Gah, lost my comment. I've played around with it with my files. Works well! The checkboxes are both useful and play well with each other (opening packed or unpacked). But it's not a hold up IMO. Another idea I'll probably look into—at some point—is using:
I love this idea. I'm not a fan of modal dialogs where you pre-set such things and then they are fixed. It's easy to imaging wanting to load different scenes with different settings. I really like the idea of the widget giving access to those settings live. |
I will quickly add the scene name and index to the layer name. These layer names getting long hahaha.
Absolutely agree. If reception to this plugin release goes well I can assume we can make a patch to make this the default load style which would allow us all that customization. |
My continuation from #25
My additions include a checkbox that lets the user determine if they want to clear the current layers before scene selection change.
Additionally, I unpack the channels as layers just like we do for the single scene files.
You can see the new functionality in this gif: https://github.com/AllenCellModeling/napari-aicsimageio/blob/psobolewskiPhD-feature/scene-widget/images/scene-selection.gif
@psobolewskiPhD and @tlambert03 would love your feedback on my minor changes if you have any comments.