Skip to content

Commit

Permalink
Grey out start/stop stream and fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
javerbukh committed Nov 18, 2024
1 parent 2d0c5a4 commit ae98601
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions jdaviz/configs/cubeviz/plugins/sonify_data/sonify_data.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,13 @@
Sonify data
</plugin-action-button>
<plugin-action-button v-if="!stream_active"
:disabled="!has_strauss"
@click="start_stop_stream"
>
Start stream
</plugin-action-button>
<plugin-action-button v-if="stream_active"
:disabled="!has_strauss"
@click="start_stop_stream"
>
Stop stream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_sonify_data(cubeviz_helper, spectrum1d_cube_larger):
assert sonify_plg.flux_viewer.volume_level == 90

# Test using spectral subset for setting audification bounds
spec_region = SpectralRegion(4.62360028e-07*u.m, 4.62920561e-07*u.m)
spec_region = SpectralRegion(4.62360028e-07*u.m, 4.62920561e-07*u.m)
subset_plugin = cubeviz_helper.plugins['Subset Tools']._obj
subset_plugin.import_region(spec_region)
sonify_plg.spectral_subset_selected = 'Subset 1'
Expand Down

0 comments on commit ae98601

Please sign in to comment.