-
Notifications
You must be signed in to change notification settings - Fork 76
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
Rehome subsets after removing data from viewer. #2409
Conversation
Codecov ReportAttention:
... and 4 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
Here's a video of this in action. You can see that I hit the bug reported in #2085 at the end of this, or at least a very similar one. Screen.Recording.2023-09-18.at.3.11.45.PM.mov |
83d7b85
to
4e421c4
Compare
Marked this as ready for review, I think it's ready for people to try breaking it. I could still break out my code (the subset rehoming) into a separate PR from Duy's code to allow deleting data if there are other issues still to address with data deletion, but as far as I recall the subset problem was the main thing holding the deletion back, so we could potentially merge both together with this PR. |
I didn't consider that case, I'll have to refactor a bit. I was actually re-parenting the subsets in |
@camipacifici I think I fixed that case. I realized that that re-parenting the subsets might only be possible if the user deletes the data from the data selection menu UI. If you just remove the data from the data_collection in the notebook, we'll get a |
Docs build failure is an unrelated timeout. |
This comment was marked as outdated.
This comment was marked as outdated.
7ee5b7d
to
9ee3a9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The print
functions have to be removed before merging. If you want to keep them for debugging, consider the snackbar in debug mode or proper logger.
The new logic starting around L1884 in app.py
, I am not sure about. The explicit checks for certain shapes would exclude all composite subsets, no? Even in Imviz, we still allow people to create weird composite subsets even though they cannot do much more with them besides grabbing them back as list of Region objects (minus the operators).
As for testing, I think all the viz needs to be tested. I can see this being a widely used feature, especially when the performance starts to slow with all them links.
This all was in the Imviz notebook: when removing layer A (reference data) from the viewer, I see the subset move to layer B. I still see it's parent as layer A. However, if I then delete layer A, the subset is alone in the viewer with the viewer appearing as a black screen. In this case, the parent is now layer B. Is all of this intended functionality? I think the subset should not be on it's own at any point. Does linking by a different type actually move the subset to a correct location (as the user would understand it)? |
…ference data changes
Fix codestyle Resolve changelog conflict Remove old changelog entry Remove debugging prints
…ref data deletion
Fix errors One more codestyle fix
Remove stray print Add third image for relinking test
Co-authored-by: P. L. Lim <[email protected]>
Clarify Changelog Update CHANGES.rst Co-authored-by: Kyle Conroy <[email protected]> Fix typo
…removing original reference
…data Fix codestyle Remove debugging prints, add changelog
Fix codestyle in test
…i and multiple viewers
author Ricky O'Steen <[email protected]> 1697030633 -0400 committer Ricky O'Steen <[email protected]> 1697735725 -0400 Check Imviz for refdata Fix errors One more codestyle fix Remove stray print Add third image for relinking test Make Specviz/Imviz display docs more consistent Update jdaviz/configs/specviz/tests/test_helper.py Co-authored-by: P. L. Lim <[email protected]> Consolidate 1D spectrum creation in conftest Apply suggestions for tests Co-authored-by: P. L. Lim <[email protected]> Also check xmax and ymax Add more comments, use center() in other test
Commit suggestion Co-authored-by: P. L. Lim <[email protected]> Codestyle
Co-authored-by: P. L. Lim <[email protected]> Add missing import
Codestyle Add helpful note Fix specviz case, remove debugging print
ef0a98d
to
95d0b7d
Compare
Dev test failure is unrelated, due to |
This builds off of Duy's work to delete data from the data collection. Once I've figured out/debugged the relevant subset rehoming code I'll split just that out into it's own PR.