forked from spacetelescope/jdaviz
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rehome subsets after removing data from viewer. (spacetelescope#2409)
* First crack at rehoming subsets * allow deleting non-plugin data if not last entry * Prevent data deletion for mosviz and cubeviz * Unloadable equivalencies for sci, err, dq * Changelog Clarify Changelog * Hackily add data back temporarily to transfer subset ownership * Remove defunct visible flag * Add subset warning to removal tooltip * update test to include viewer id in remove event * Update CHANGES.rst Co-authored-by: Kyle Conroy <kyleconroy@gmail.com> Fix typo * Debugging subset rehoming for Imviz, currently seems to flip x and y * I think this logic will need to go first to add WCS transform before removing original reference * Now converts all four spatial subsets through WCS link to new parent data Fix codestyle Remove debugging prints, add changelog * Add simple test for this Fix codestyle in test * Move subset reparenting logic to data deletion, handle TrueCircularRoi and multiple viewers Fix codestyle * Handle converting spectral units if necessary * Force subset plugin to update when subsets are re-parented * Split out reparenting into its own function so it can be used with reference data changes * Refactor reparenting to act on subset_groups rather than viewer layers Fix codestyle Resolve changelog conflict Remove old changelog entry Remove debugging prints * Relink if ref data is deleted * Restore responsiveness (to plot options, etc) for Imviz layers after ref data deletion * Exclude subsets from layers to potentially reload * Check Imviz for refdata * Fix overlapping data name/removal icon * Add some screenshots and documentation about data deletion Fix errors One more codestyle fix * Add test for data deletion in Specviz 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 <2090236+pllim@users.noreply.github.com> * Consolidate 1D spectrum creation in conftest * Changelog Clarify Changelog Update CHANGES.rst Co-authored-by: Kyle Conroy <kyleconroy@gmail.com> Fix typo * Debugging subset rehoming for Imviz, currently seems to flip x and y * I think this logic will need to go first to add WCS transform before removing original reference * Now converts all four spatial subsets through WCS link to new parent data Fix codestyle Remove debugging prints, add changelog * Add simple test for this Fix codestyle in test * Move subset reparenting logic to data deletion, handle TrueCircularRoi and multiple viewers * parent 9732bfe9d374f8f16e94983348d5d1b840eb4682 author Ricky O'Steen <rosteen@stsci.edu> 1697030633 -0400 committer Ricky O'Steen <rosteen@stsci.edu> 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 <2090236+pllim@users.noreply.github.com> Consolidate 1D spectrum creation in conftest Apply suggestions for tests Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com> Also check xmax and ymax Add more comments, use center() in other test * Consolidate this with center() and move_to() Commit suggestion Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com> Codestyle * Apply suggestions from code review Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com> Add missing import * Handle composite subsets Codestyle Add helpful note Fix specviz case, remove debugging print * Make sure data is unloaded from all viewers before deleting it --------- Co-authored-by: Kyle Conroy <kyleconroy@gmail.com> Co-authored-by: Duy Nguyen <duytnguyendtn.open@gmail.com> Co-authored-by: Duy Tuong Nguyen <dtn5ah@virginia.edu> Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
- Loading branch information
1 parent
4603356
commit 29cce1c
Showing
14 changed files
with
278 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.