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

Sonify plugin updates #3

Draft
wants to merge 262 commits into
base: strauss-hack-jt
Choose a base branch
from

Conversation

javerbukh
Copy link

@javerbukh javerbukh commented Oct 11, 2024

Description

This pull request adds:

  • Spinner to show in UI that cube is being sonified
  • Volume slider
  • Wavelength min and max based on spectrum viewer zoom limits
  • Spectrum-at-spaxel tool automatically selected after cube is sonified
  • Add ability to select output device for sound
  • Ability to start and stop sonification so the user can use the spectrum-at-spaxel tool without sonification
  • Save sonified cube so it does not need to be created multiple times
  • Update dependencies in Jdaviz so Strauss can be a soft dependency
  • Change code to be fully PEP8 compliant
  • Fix bug with output sound

Change log entry

  • Is a change log needed? If yes, is it added to CHANGES.rst? If you want to avoid merge conflicts,
    list the proposed change log here for review and add to CHANGES.rst before merge. If no, maintainer
    should add a no-changelog-entry-needed label.

Checklist for package maintainer(s)

This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.

  • Are two approvals required? Branch protection rule does not check for the second approval. If a second approval is not necessary, please apply the trivial label.
  • Do the proposed changes actually accomplish desired goals? Also manually run the affected example notebooks, if necessary.
  • Do the proposed changes follow the STScI Style Guides?
  • Are tests added/updated as required? If so, do they follow the STScI Style Guides?
  • Are docs added/updated as required? If so, do they follow the STScI Style Guides?
  • Did the CI pass? If not, are the failures related?
  • Is a milestone set? Set this to bugfix milestone if this is a bug fix and needs to be released ASAP; otherwise, set this to the next major release milestone. Bugfix milestone also needs an accompanying backport label.
  • After merge, any internal documentations need updating (e.g., JIRA, Innerspace)?

gibsongreen and others added 30 commits August 8, 2024 11:12
remove magnitude units from display units list
…dant GlobalDisplayUnitChange broadcast (spacetelescope#3138)

* observe display traitlets separately

* .

* remove redundant broadcast

* code style
* Remove incorrect moveaxis call in spectrum1d_3d parser

* Working on correcting expected test results

* Continuing to work on tests

* Update spectral extraction tests

* Update aperphot test

* Changelog

* Make one cubeviz mouseover test sensitive to axis swap

* Update comment

* Update jdaviz/configs/cubeviz/plugins/tests/test_parsers.py
because it is spamming the app
* TST: Modify test to expose bug in main

* Fix the bug and add more tests

* Maybe should not backport

* Fix XOR logic flaw
and add more tests.

Co-authored-by: Jesse Averbukh <[email protected]>

* Simplify lo/hi logic

Co-authored-by: Brett M. Morris <[email protected]>

---------

Co-authored-by: Jesse Averbukh <[email protected]>
Co-authored-by: Brett M. Morris <[email protected]>
…scope#3118)

* aperture photometry plugin listens to unit conversion

* pllim minor edits

review comment

Allow per-wave to/from per-freq for most cases

Co-authored-by:  Clare Shanahan <[email protected]>

* TST: Update result that changed
because of spacetelescope#3133

---------

Co-authored-by: P. L. Lim <[email protected]>
and devdeps clean-up
* POC: plugin API hints demo

* store plugin state in metadata "history"

* button to toggle API hints

(only hooked up for gaussian smooth for now)

* implement to_script method

* might want to move to the UI side if we want to control the order and have a copy button

* include data definition and write to script in metadata

* rename show_api_hints > api_hints

* improved styling and connect add_to_viewer

* rename api_hints > api_hints_enabled

* generalize and implement across multiple plugins

* codestyle and fix rebase

* .ignore-api-hint > explicitly set .api-hint

* use plugin-switch component for visibility switches in plot options

* implement for moment maps and specviz2d spec extract

* tooltip for toggle button

* fix behavior for switches

* separate component for slider header

* fix styling for editable select

* brief mention in docs

* changelog entry

* don't show toggle button when not in notebook/lab

* defer to_script functionality

* implement/update additional plugins

* partial implementation for dq plugin

* plugin-color-picker and plugin-slider components
TST: photutils nightly wheel, devdeps clean-up
* update method called by zoom callbacks

to include logic to skip callback when histogram is not set to follow zoom-limits

* changelog entry

* zoom-limits handled independently instead of relying on empty msg
* change GlobalDisplayUnitChanged axis to spectral_y for clarity

* change messaging

* .

* broadcast 3 messages

* update spectral extraction plugin to listen to unit change messages

* add args

* some changes in aperture photometry to avoid unnecessary unit conversions

* revert changes to aperture phot

* code style and change log

* .

* update_uc_messaging

* .

* removed unused var

* remove config check

* fix model fitting

* update function selection

* fix model fitting
…acetelescope#3154)

* Disallow negative counts conversion factor
in not-so-simple-anymore-too-bad aperture photometry plugin.

* Fancier front-end checks.

Co-authored-by: Kyle Conroy <[email protected]>

---------

Co-authored-by: Kyle Conroy <[email protected]>
* re-add untranslatable units, add translation equivalencies

* readd untranslatable units to app defined units

* fix rebase, enable untranslatable units, testing and coords needs work

* fix styling

* resolve spectrum-viewer mouseover, image-viewers need work

* generalize flux_conversion, enable untranslatable units, temporarily us mouseover global messages

* change log entry, update test_utils.py tests

* increase test coverage

* seperate flux conversion and transitive units, remove duplicate units, test coverage

* remove duplicate/reversed units

* implement commented changes

* update tests

* address review comments, begin work on spectral extraction issue

* resolve failing tests and spectral extraction issue
javerbukh and others added 30 commits December 11, 2024 09:36
…cope#3319)

* Track loaded mask cube in cubeviz

* First pass at handling mask cube in extraction

* Fix type

* Add changelog

* Handle mask cubes that have NaNs instead of 0s

* Act on copy of this mask array

* Don't save DQ array as loaded_mask for JWST

* Add snackbar warning and note in docs

* codestyle

* Add extraction test on file with mask

* Codestyle
* example data update for B16

* correction to package names
… tqdm use and import, and use main branch strauss which should now work for JDAViz!
…spacetelescope#3353)

* rdm compatibility, move romandeps test to CI workflows

* Fix ci_workflows.yml

---------

Co-authored-by: P. L. Lim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.