Skip to content

Commit

Permalink
simplify WCS access from metadata
Browse files Browse the repository at this point in the history
now that spacetelescope#1325 is merged and rebased

Co-authored-by: P. L. Lim <[email protected]>
  • Loading branch information
kecnry and pllim authored May 19, 2022
1 parent f60d51d commit 44a9ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdaviz/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ def _on_data_deleted(self, msg):
@staticmethod
def _create_data_item(data):
ndims = len(data.shape)
wcsaxes = data.meta.get('WCSAXES', data.meta.get('header', {}).get('WCSAXES', None))
wcsaxes = data.meta.get('WCSAXES', None)
if data.label == 'MOS Table':
typ = 'table'
elif ndims == 1:
Expand Down

0 comments on commit 44a9ed3

Please sign in to comment.