From 44a9ed36952a69fc713b135a1257559e7d1cc046 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Thu, 19 May 2022 13:11:08 -0400 Subject: [PATCH] simplify WCS access from metadata now that #1325 is merged and rebased Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com> --- jdaviz/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdaviz/app.py b/jdaviz/app.py index 56d5b68d84..86398855ef 100644 --- a/jdaviz/app.py +++ b/jdaviz/app.py @@ -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: