Skip to content

Commit 12f9e6c

Browse files
authored
Mask and non-finite option refactor (#254)
1 parent c31a9af commit 12f9e6c

22 files changed

+8820
-837
lines changed

CHANGES.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ New Features
2121

2222
- Added the ``mask_treatment`` parameter to Background, Trace, and Boxcar Extract
2323
operations to handle non-finite data and boolean masks. Available options are
24-
``filter``, ``omit``, or ``zero-fill``, with ``exclude`` additionally available
25-
for BoxcarExtract. [#216]
24+
``apply``, ``ignore``, ``propagate``, ``zero_fill``, ``nan_fill``, ``apply_mask_only``,
25+
or ``apply_nan_only``. [#216, #254]
2626

27-
- Modified BoxcarExtract to ignore non-finite pixels when ``mask_treatment`` is set
28-
to ``exclude``; otherwise, non-finite values are propagated. Boxcar extraction is
27+
- Modified ``background.Background.bgk_spectrum`` to allow the user to select the statistic
28+
used for background estimation between ``median`` or ``average``. [#253]
29+
30+
- Modified ``extract.BoxcarExtract`` to ignore non-finite pixels when ``mask_treatment`` is set
31+
to ``apply``; otherwise, non-finite values are propagated. Boxcar extraction is
2932
now carried out as a weighed sum over the window. When no non-finite values are
3033
present, the extracted spectra remain unchanged from the previous behaviour.
3134

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Calibration
5353
wavelength_calibration.rst
5454
extinction.rst
5555
specphot_standards.rst
56+
mask_treatment/mask_treatment.rst
5657

5758

5859
*****

0 commit comments

Comments
 (0)