Repository navigation
Conversation
6f95980 to
a4bd5d7
Compare
|
Does |
This tool allows you to reorder the plot dims any way you like. But yes, in the example above, the order corresponds to the detector number. We have not planned to add masking tools to this. But that could be an option in the future. |
|
Automated review found two issues: Dream diagnostics assumes input has
|
|
Does If there is 3 detector dimensions per axis, specifying the first dimension is insufficient to determine the order, how does it work in that case? |
|
I considered using tag inputs but rejected that idea. It would require a lot of syncing between the widgets because you have to ensure that all dims are always represented exactly once. Plus, it requires typing the dim names and the input field is often invisible. Can you share your code so we can compare? |
I've pushed the changes here: #891 I've not reviewed the code. The idea was just to sketch the implementation of the alternative interface. |
|
@jl-wynen I think this looks difficult to use. I would vote for maybe making a few simpler tools/plots rather than one that does everything?
I know you can achieve the same plot here (without the red lines), but I think the layout being static (i.e. not being able to switch the dims) is an advantage there? Then you get the masking for free ;-) |
|
This works for BIFROST. But how would you handle DREAM with 5+ dimensions? Is it possible to control which dims are shown in what way? We can make it static, we wouldn't lose much if we leave the constructor arguments to customise the dims. |
6b2f26e to
61d2695
Compare
nvaytet
left a comment
There was a problem hiding this comment.
Tested manually on dream data.
Looks good.
| ) | ||
| figure_box.children = [slicer] | ||
|
|
||
| selector = ipw.ToggleButtons(options=list(data)) |
There was a problem hiding this comment.
Can we put the plots for the different banks inside tabs? Also make slicers inside each tab, and then we don't need to re-create slicers as we switch banks?
There was a problem hiding this comment.
I did it this way to make the plots lazily for two reasons:
- It should be faster to get the first plot
- If a plot fails, the others are still shown. (Happens for DREAM if you don't sum over
tofbecause there are 7 dims andflattencan't handle that.) But I could also catch exceptions for each tab separately and show an error message.
There was a problem hiding this comment.
Why can't flatten handle that case? Is it something to do with the limit of 6 dimensions in Scipp arrays?
There was a problem hiding this comment.
I think it works fine, and the argument for
It should be faster to get the first plot
is a good one.
I think for a later addition, we could have the thing we talked about when you have separators enabled, and you click in one region, it would just zoom in on that section of the data. If we add autoscale=False in the default args, it should work fine.
But this can be added in a follow-up.
There was a problem hiding this comment.
Why can't flatten handle that case? Is it something to do with the limit of 6 dimensions in Scipp arrays?
yes
|
Fixed |
|
Still 2 failing tests after the last update. |
8b82a9c to
d9896ec
Compare




This PR generalises the
FlatVOxelViewerif DREAM and moves the implementation into ESSreduce.I changed how the dimension selector works to allow users some control over which dimensions are shown on which axis. And I also added support for slicing dims so we can get slicer plots at the same time.This was mostly written by Claude. I tested the widget with data fro dream and bifrost.I removed the interactive elements. Now you have to specify which dims go on which axis when constructing the viewer.