Specutils

Latest version: v1.19.0

Safety actively analyzes 688578 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

1.9.0

------------------

Bug Fixes
^^^^^^^^^

- Fix bug in fitting with weights if weights argument is set to 'unc'. [979]

- Fix bug in JWST reader which caused multi-extension files to load only the
primary HDU [982]

- Implemented conversion to expected uncertainty type in a few functions that
were still just assuming the uncertainty was the correct type. [984]

Other Changes and Additions
^^^^^^^^^^^^^^^^^^^^^^^^^^^

- Bumped astropy minimum version to 5.1. [984]

1.8.1

------------------

Bug Fixes
^^^^^^^^^

- Arithmetic with constants and Spectrum1D now works in either order. [964]

- Fixed uncertainty propagation in FluxConservingResampler. [976]

1.8.0

------------------

New Features
^^^^^^^^^^^^

- Implemented uncertainty propagation for analysis functions. [938, 939, 961, 968]

- Model fitting with ``fit_lines`` now returns uncertainties from the underlying scipy
fitter by default. [962]

Bug Fixes
^^^^^^^^^

- Fixed a bug with moment map orders greater than 1 not being able to handle
cubes with non-square spatial dimensions. [970]

- Added a workaround for reading JWST IFUs with incorrect GWCS. [973]

Other Changes and Additions
^^^^^^^^^^^^^^^^^^^^^^^^^^^

- The Spectrum1D redshift and radial_velocity attribute setters were deprecated
in favor of the more explicit set_redshift_to, shift_spectrum_to, and
set_radial_velocity_to methods. [946, 943]

- ``estimate_line_parameters`` now calculates estimates based on the selected
region, rather than the entire spectrum. [962]

1.7.0

------------------

Bug Fixes
^^^^^^^^^

- Fixed ``spectral_slab`` crashing when ``spectral_axis`` has unit of pixels and
the bounds are also defined in the unit of pixels. [926]

- Fixed resulting ``spectral_axis`` containing NaN when a cube is passed into
``Spectrum1D`` without WCS nor spectral axis and the spatial-spatial dimension
is smaller than spectral dimension. [926]

- Fixed WCS not accurately reflecting the updated spectral axis after slicing a
``Spectrum1D``. [918]

Other Changes and Additions
^^^^^^^^^^^^^^^^^^^^^^^^^^^

- Logger usage is removed. Warnings now issued using Python ``warnings`` module.
This enables more granular warning control for downstream packages. [922]

1.6.0

------------------

New Features
^^^^^^^^^^^^

- Add collapse methods to Spectrum1D. [904, 906]

- SpectralRegion and Spectrum1D now allow descending (in wavelength space) as
well as ascending spectral values. [911]

1.5.0

------------------

New Features
^^^^^^^^^^^^

- Convolution-based smoothing will now apply a 1D kernel to multi-dimensional fluxes
by convolving along the spectral axis only, rather than raising an error. [885]

- ``template_comparison`` now handles ``astropy.nddata.Variance`` and
``astropy.nddata.InverseVariance`` uncertainties instead of assuming
the uncertainty is standard deviation. [899]

Bug Fixes
^^^^^^^^^

- Speed up JWST s3d loader and reduce memory usage. [874]

- ``SpectralRegion`` can now handle pixels. [886]

- Fix bug where ``template_comparison`` would return the wrong chi2 value. [872]

Other Changes and Additions
^^^^^^^^^^^^^^^^^^^^^^^^^^^

- ``fit_lines`` now makes use of unit support in ``astropy.modeling``. [891]

- ``Spectrum1D.with_spectral_units`` now attempts to fall back on the ``spectral_axis``
units if units could not be retrieved from the WCS. [892]

- ``ndcube`` package pin updated to released version (2.0). [897]

- Minor changes for astropy 5.0 compatibility. [895]

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.