Skip to content

v1.5.0

Choose a tag to compare

@hpparvi hpparvi released this 05 Mar 20:24
· 268 commits to main since this release
12f9e6c

New Features

  • Added the mask_treatment parameter to Background, Trace, and Boxcar Extract
    operations to handle non-finite data and boolean masks. Available options are
    apply, ignore, propagate, zero_fill, nan_fill, apply_mask_only,
    or apply_nan_only. [#216, #254]

  • Modified background.Background.bgk_spectrum to allow the user to select the statistic
    used for background estimation between median or average. [#253]

  • Modified extract.BoxcarExtract to ignore non-finite pixels when mask_treatment is set
    to apply; otherwise, non-finite values are propagated. Boxcar extraction is
    now carried out as a weighed sum over the window. When no non-finite values are
    present, the extracted spectra remain unchanged from the previous behaviour.

Bug Fixes

  • Fixed Astropy v7.0 incompatibility bug in tracing.FitTrace: changed to use
    astropy.modeling.fitting.DogBoxLSQFitter when fitting a Gaussian peak model instead of
    astropy.modeling.fitting.LevMarLSQFitter that may be deprecated in the future. Also
    changed to use fitting.LMLSQFitter instead of fitting.LevMarLSQFitter when fitting
    a generic nonlinear trace model. [#229]

Other changes

  • Changed tracing.FitTrace to use astropy.modeling.fitting.LinearLSQFitter
    if the trace model is linear.

New Contributors

Full Changelog: v1.4.1...v1.5.0