Skip to content

Commit

Permalink
Fix galactic plane mode connection between glue and WWT.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Sep 10, 2024
1 parent ca4413c commit 1e51551
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions glue_wwt/viewer/data_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,17 @@ def _update_wwt(self, force=False, **kwargs):

for setting in self._UPDATE_SETTINGS:
if force or setting in kwargs:
wwt_attr = self._GLUE_TO_WWT_ATTR_MAP.get(setting, setting)
setattr(self._wwt, wwt_attr, getattr(self.state, setting, None))
self._update_wwt_setting_from_state(setting)

show_imagery = self.state.mode == 'Sky'
if show_imagery:
for setting in self._IMAGERY_UPDATE_SETTINGS:
if force or setting in kwargs:
setattr(self._wwt, setting, getattr(self.state, setting, None))
self._update_wwt_setting_from_state(setting)

def _update_wwt_setting_from_state(self, setting):
wwt_attr = self._GLUE_TO_WWT_ATTR_MAP.get(setting, setting)
setattr(self._wwt, wwt_attr, getattr(self.state, setting, None))

def get_layer_artist(self, cls, **kwargs):
"In this package, we must override to append the wwt_client argument."
Expand Down

0 comments on commit 1e51551

Please sign in to comment.