Skip to content

Releases: astropy/specutils

v1.19.0

05 Nov 17:58
Compare
Choose a tag to compare

1.19.0 (2024-11-05)

Bug Fixes

  • Fixed mwmVisit SDSS-V Spectrum1D and SpectrumList default loader
    being unable to load files containing only BOSS instrument spectra. [#1185]

  • Fixed automatic format detection for SDSS-V SpectrumList default loaders. [#1185]

  • Fixed SplineInterpolatedResampler when input and output spectral axes are different
    physical types, e.g. wavelength and velocity. [#1190]

Other Changes and Additions

  • "Multi" loaders have been removed from SDSS-V SpectrumList default loaders. [#1185]

v1.18.0

16 Oct 19:22
Compare
Choose a tag to compare

New Features

  • New Spectrum1D.with_spectral_axis_and_flux_units method to convert both
    spectral axis and flux units at the same time. [#1184]

Bug Fixes

  • Fixed Spectrum1D.with_flux_unit() not converting uncertainty along
    with flux unit. [#1181]

  • Fixed extracting a spectral region when one of spectrum/region is in wavelength
    and the other is in frequency units. [#1187]

Other Changes and Additions

  • Replaced LevMarLSQFitter with TRFLSQFitter as the former is no longer
    recommended by astropy. [#1180]

v1.17.0

04 Oct 16:21
Compare
Choose a tag to compare

v1.17.0

New Features

  • Fitting and excision functions can now use inclusive upper bounds for input regions if specified. [#1171]

Bug Fixes

  • Fixed specifying a single value for window in analysis.fit_lines. [#1164]

Other Changes and Additions

  • Dropped support for python 3.9. [#1176]

  • utils.wcs_utils.refraction_index (and thus air_to_vac and vac_to_air)
    now defaults to Morton2000 as the method instead of Griesen2006. [#1169]

v1.16.0

23 Sep 14:16
Compare
Choose a tag to compare

1.16.0 (2024-08-08)

Bug Fixes

  • Arithmetic operations on Spectrum1D objects now preserve spectral axis values that
    were updated by setting redshift or radial velocity. [#1158]

  • Ensure supported dtype is passed to medfilt during smoothing. [#1156]

  • Adjusted copy semantics for numpy 2 compatibility. [#1145]

  • Fixed moment 0 calculation to sum flux*dx (rather than flux) to match line_flux. [#1141]

Other Changes and Additions

  • Changed the tabular-fits reader/writer to round-trip the header,
    by default in the primary HDU. The reader now reads the primary
    header into meta['header']; the old behaviour of reading the
    header from the data extension can be restored by setting the option
    store_data_header=True. The writer is taking a corresponding option
    for saving meta['header'] to either primary or data extension headers. [#1113]

  • Improved documentation for readers/writers. [#1152, #1157]

** Note: re-released on Github 2024-09-23 to re-trigger Zenodo hook

v1.15.0

01 May 16:35
Compare
Choose a tag to compare

New Features

  • Implemented SpectralRegion.write() and SpectralRegion.read() to round-trip spectral
    regions to/from ECSV files via astropy.table.QTable. [#1133]

v1.14.0

16 Apr 15:44
Compare
Choose a tag to compare

Changes

  • new_flux_unit changed to with_flux_unit to match spectral version,
    updated docstring to reflect actual behavior. [#1124]

  • Compatibility with numpy 2.0 and astropy 6.1. [#1130]

v1.13.0

19 Feb 21:26
Compare
Choose a tag to compare

New Features

  • Added SDSS-V file format readers. [#1107]

  • Switched from using numpy.correlate to scipy.signal.correlate in template_correlate
    and enabled passing through the method argument. [#1114]

  • Added DESI file format readers. [#1116]

  • Added truncate option for resampler and template correlation extrapolation treatment. [#1121]

Bug Fixes

  • SDSS reader now properly exposes the spPlate_identify and spPlate_loader functions. [#1097]

  • Masks now round-trip through tabular-fits reader/write. [#1104]

  • template_correlate no longer errors when used on a Spectrum1D that lacks an
    uncertainty array. [#1118]

  • with_spectral_unit has been changed to with_spectral_axis_unit and actually works
    now. [#1119]

  • Template correlation functions now truncate to overlapping region to avoid NaNs in normalization
    when spectrum and template have non-overlapping regions. [#1121]

  • Fixed numpy error when printing a Spectrum1D object. [#1123]

Other Changes and Additions

  • Made a couple small updates to developer docs. [#1110, #1112]

  • Updated the format of Spectrum1D.__str__ and Spectrum1D.__repr__. [#1123]

v1.12.0

17 Oct 14:48
Compare
Choose a tag to compare

New Features

  • Registering a SpectrumList reader for a data loader is now optional. [#1068]

Bug Fixes

  • Fixed SDSS-I/II spSpec units. [#1066]

  • Addressed compatibility with ASDF 3.0 for JWST data. [#1079]

Other Changes and Additions

  • Corrected velocity_convention options in Spectrum1D docstring. [#1088]

v1.11.0

16 Jun 21:26
Compare
Choose a tag to compare

New Features

  • wcs1d-fits loader now reads and writes boolean masks. [#1051]

Bug Fixes

  • Reimplementation of FluxConservingResampler. It is now faster and yields more accurate results. [#1060]

  • Fixed uncertainty calculations in centroid and gaussian width functions, also added an option
    to use an astropy.uncertainty distribution instead of the analytic solution. [#1057]

Other Changes and Additions

  • Drastically improved performance of region extraction. [#1048]

  • When creating a Spectrum1D object, it is enforced that the spectral axis is sorted and either
    strictly increasing or decreasing. [#1061]

v1.10.0

05 Apr 21:24
Compare
Choose a tag to compare

New Features

  • wcs1d-fits loader now reads and writes celestial components of
    of multi-dimensional WCS, and handles mask and uncertainty
    attributes. [#1009]

  • Added support for reading from files with flux in counts. [#1018]

Bug Fixes

  • Fixed SpectralAxis.with_observer_stationary_relative_to to actually
    return the updated spectral axis. [#992]

  • Fixed region extraction for axes/regions in units of u.pix. [#1001]

  • tabular-fits writer now properly converts uncertainties to StdDevUncertainty
    if needed. [#1027]

  • Fix bug in fit_lines which gave unexpected outputs from the get_fit_info
    and ignore_units keyword arguments. [#1030]

  • Fix SNR calculations with both masks and regions. [#1044]

Other Changes and Additions

  • Added some basic documentation for Spectrum1D.write. [#1017]

  • JWST s2d and s3d readers now requires the optional dependency, stdatamodels,
    which user has to install separately. [#1038]

  • ASDF tag for Spectrum1D is now compatible with ASDF v3.
    As a result, minversion of asdf has been bumped to 2.14.
    Redundant ASDF schema for SpectralCoord is removed.
    It also now supports mask serialization. [#1042, #1053]

  • JWST X1D reader will no longer raise a UnitWarning for surface brightness
    error. [#1050]