-
Notifications
You must be signed in to change notification settings - Fork 74
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
BUG: Gaussian smooth plugin incompatible with unreleased upstream package #821
Comments
Minimally reproducible code snippet as follows. Must have dev version of import numpy as np
from astropy.wcs import WCS
from glue.config import data_translator
from glue.core import Data
from specutils import Spectrum1D
# This indirectly enables the necessary data translator
from jdaviz.configs.default.plugins.gaussian_smooth.gaussian_smooth import GaussianSmooth
wcs = WCS(naxis=3)
wcs.wcs.ctype = 'RA---TAN', 'DEC--TAN', 'FREQ'
wcs.wcs.set()
data = Data(x=np.ones((3, 4, 5)), label='test', coords=wcs)
handler, _ = data_translator.get_handler_for(Spectrum1D)
spec = data.get_object(cls=Spectrum1D) # See traceback
which narrows down to: from astropy import units as u
flux = np.ones((3, 4, 5)) * u.dimensionless_unscaled
spec = Spectrum1D(flux=flux, mask=None, wcs=wcs) # traceback which narrows down to: wcs.pixel_to_world([0, 1, 2, 3, 4]) # traceback |
I traced this error to statistic set to |
I think the change of default of None in glue-astronomy actually makes sense, however the exception we are running into here is a bug in specutils: astropy/specutils#857 - so for now I think reverting the default in glue-astronomy makes sense. |
Thanks! I opened glue-viz/glue-astronomy#43 upstream as a follow-up. I don't think there is anything Jdaviz can do in this matter. |
This started happening over the weekend in dev job, so must have been some recent unreleased upstream changes (probably glue-viz/glue-astronomy#36). We need to fix this incompatibility before it is too late.
Example log: https://github.com/spacetelescope/jdaviz/runs/3460019342?check_suite_focus=true
The text was updated successfully, but these errors were encountered: