Skip to content

Commit

Permalink
Changed function name
Browse files Browse the repository at this point in the history
upstream in glue-astronomy during review process
  • Loading branch information
pllim committed Jun 19, 2023
1 parent 8cd0c3c commit 5b1cdc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jdaviz/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
CompositeSubsetState, InvertState)
from glue.core.units import unit_converter
from glue_astronomy.spectral_coordinates import SpectralCoordinates
from glue_astronomy.translators.regions import roi_subset_state_to_spatial
from glue_astronomy.translators.regions import roi_subset_state_to_region
from glue_jupyter.app import JupyterApplication
from glue_jupyter.common.toolbar_vuetify import read_icon
from glue_jupyter.state_traitlets_helpers import GlueState
Expand Down Expand Up @@ -1046,7 +1046,7 @@ def _get_range_subset_bounds(self, subset_state,

def _get_roi_subset_definition(self, subset_state):
# TODO: Imviz: Return sky region if link type is WCS.
roi_as_region = roi_subset_state_to_spatial(subset_state)
roi_as_region = roi_subset_state_to_region(subset_state)
return [{"name": subset_state.roi.__class__.__name__,
"glue_state": subset_state.__class__.__name__,
"region": roi_as_region,
Expand Down

0 comments on commit 5b1cdc4

Please sign in to comment.