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

Fix galactic plane mode #115

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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