Jwst

Latest version: v1.17.1

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

Scan your dependencies

Page 1 of 16

1.17.1

===================

refpix (detector1)
------------------

- Bugfix for the new SIRS reference pixel subtraction. (`9037
<https://github.com/spacetelescope/jwst/issues/9037>`_)


tweakreg (image3)
-----------------

- Changed the default values for ``sharplo``, ``sharphi``, ``roundlo``, and
``roundhi`` to the values appropriate for the current default algorith for
source finding in the ``tweakreg`` step. (`9036
<https://github.com/spacetelescope/jwst/issues/9036>`_)

1.17.0

===================

General
-------

- Rename default branch to main. (`8210
<https://github.com/spacetelescope/jwst/issues/8210>`_)
- Added mypy type checking to CI checks (`8852
<https://github.com/spacetelescope/jwst/issues/8852>`_)
- Give regtest okify results unique subdirectories. (`8885
<https://github.com/spacetelescope/jwst/issues/8885>`_)
- Include xml and db test data as package data for lib tests. (`8935
<https://github.com/spacetelescope/jwst/issues/8935>`_)
- Update minimum required version of crds to allow for "data release style"
contexts. (`8950 <https://github.com/spacetelescope/jwst/issues/8950>`_)
- remove ``okify_regtests`` script (move to ``ci_watson``) (`8957
<https://github.com/spacetelescope/jwst/issues/8957>`_)
- When blending metadata don't store columns containing all missing value
(nans). (`8958 <https://github.com/spacetelescope/jwst/issues/8958>`_)
- Increase asdf upper pin to 5 (`8966
<https://github.com/spacetelescope/jwst/issues/8966>`_)


Documentation
-------------

- use ``towncrier`` to handle change log entries (`8671
<https://github.com/spacetelescope/jwst/issues/8671>`_)
- Mention possible need to provide package name to strun when using aliases.
(`8926 <https://github.com/spacetelescope/jwst/issues/8926>`_)


``stpipe``
----------

- Add warning that ``Step.__call__`` is deprecated. (`8761
<https://github.com/spacetelescope/jwst/issues/8761>`_)
- Remove all uses of Step.__call__ to allow it's deprecation. (`8945
<https://github.com/spacetelescope/jwst/issues/8945>`_)


Data Models
-----------

- Remove memory-saving options from ModelContainer (`8831
<https://github.com/spacetelescope/jwst/issues/8831>`_)
- Update ModelLibrary to use meta.asn.exptype instead of meta.exptype. (`8918
<https://github.com/spacetelescope/jwst/issues/8918>`_)


Associations
------------

- Add mosaic association candidates to list of level three candidate types
requiring members from more than one observation (`8843
<https://github.com/spacetelescope/jwst/issues/8843>`_)


Scripts
-------

- Remove the outdated schema_editor script. (`8909
<https://github.com/spacetelescope/jwst/issues/8909>`_)


Pipeline
--------

- Fixed a bug leading to incorrect area extensions, and sometimes crashes, in
the coron3 pipeline (`8907
<https://github.com/spacetelescope/jwst/issues/8907>`_)
- Add 'mbsub' to the list of known suffixes, for ``master_background``
correction in ``calwebb_spec3``. (`8927
<https://github.com/spacetelescope/jwst/issues/8927>`_)
- Transfer wcsinfo metadata to new MultiSlitModel created during
``calwebb_spec2`` processing of NIRSpec MSA data. (`8947
<https://github.com/spacetelescope/jwst/issues/8947>`_)


ami_analyze / ami_normalize / ami_average (ami3)
------------------------------------------------

- Change how AMI observables are averaged: average fringe quantities before
calculating additional observables. Update their error calculation: use
covariance of amplitudes/phases (and derived quantities) and standard error
of the mean. Code now expects an ASDF filename string for user-supplied
affine2d and bandpass input arguments. Example file creation in
documentation. (`8846
<https://github.com/spacetelescope/jwst/issues/8846>`_)
- Use mask and pupil geometry constants from NRM reference file, and apply
affine distortion from commissioning to LG model as default. (`8974
<https://github.com/spacetelescope/jwst/issues/8974>`_)


assign_wcs (image2, spec2)
--------------------------

- Use the range of points in the TabularModel to adjust the bounding_box in a
MIRI LRS FIXEDSLIT observation.
Ignore the bounding_box in running the inverse WCS transform when computing
crpix. (`8554 <https://github.com/spacetelescope/jwst/issues/8554>`_)
- Catch NaN values in msa tables for source positions in slit and replace with
slit center. (`8874 <https://github.com/spacetelescope/jwst/issues/8874>`_)
- Use pixel vertices to define s_region instead of pixel centers." (`8897
<https://github.com/spacetelescope/jwst/issues/8897>`_)
- Fix all bounding box assignments to wcs objects so that they are correctly
and
specifically assigned as order ``F`` boxes. This ensures consistency with the
assumptions made by GWCS for bounding boxes. (`8963
<https://github.com/spacetelescope/jwst/issues/8963>`_)
- Fix negative SHUTTRID values under numpy 2 (`8978
<https://github.com/spacetelescope/jwst/issues/8978>`_)


background (image2, spec2)
--------------------------

- Fixed crash when combining full and subarray observations for background
subtraction. (`8787 <https://github.com/spacetelescope/jwst/issues/8787>`_)
- Apply bitwise operations in correct order when counting good pixels in the
background mask during WFSS background subtraction. (`8916
<https://github.com/spacetelescope/jwst/issues/8916>`_)
- Compute scaling for WFSS background subtraction using error-weighted mean
(`8990 <https://github.com/spacetelescope/jwst/issues/8990>`_)


combine_1d (spec3)
------------------

- Fix wavelength sort order for single input spectrum. (`8927
<https://github.com/spacetelescope/jwst/issues/8927>`_)


cube_build (spec2 IFU, spec3)
-----------------------------

- For moving-target IFU data, set RA, Dec header information of s3d products
according to the mean of input models instead of the first input model.
(`8911 <https://github.com/spacetelescope/jwst/issues/8911>`_)
- Tweak the cube_build spaxel debugging option to provide filename info and
match outputs to the stated ordering. (`8913
<https://github.com/spacetelescope/jwst/issues/8913>`_)


emicorr (detector1 MIR)
-----------------------

- Removed the interleaved noise array and do interleaving of noise and
subtraction in-place to avoid creating 2 arrays of equal dimensions to data.
(`8849 <https://github.com/spacetelescope/jwst/issues/8849>`_)


extract_1d (spec2, spec3)
-------------------------

- Refactor the core extraction algorithm and aperture definition modules for
slit and slitless extractions, for greater efficiency and maintainability.
Extraction reference files in FITS format are no longer supported. Current
behavior for extractions proceeding from extract1d reference files in JSON
format is preserved, with minor improvements: DQ arrays are populated and
error propagation is improved for some aperture types. (`8961
<https://github.com/spacetelescope/jwst/issues/8961>`_)
- Set order 2 weights to 1.0 for NIRISS SOSS SUBSTRIP96 data to avoid a
spurious flux drop in spectra around 1.5um. (`8983
<https://github.com/spacetelescope/jwst/issues/8983>`_)


firstframe (detector1 MIR)
--------------------------

- Update the firstframe step to optionally not flag when a ramp saturates in
group 3 (`8952 <https://github.com/spacetelescope/jwst/issues/8952>`_)


jump (detector1)
----------------

- Add maximum_shower_amplitude parameter to MIRI cosmic rays showers routine
to fix accidental flagging of bright science pixels. (`8890
<https://github.com/spacetelescope/jwst/issues/8890>`_)


master_background (spec2 MOS, spec3)
------------------------------------

- Include resample, pixel_replace and extract_1d into MOS background pipeline
(`8847 <https://github.com/spacetelescope/jwst/issues/8847>`_)
- Fix ModelContainer handling for user background input. (`8927
<https://github.com/spacetelescope/jwst/issues/8927>`_)
- Added pixel-to-pixel sigma clipping on input backgrounds in the NIRSpec MOS
master_background_mos step. Added option to median filter master background
spectrum in both the master_background and master_background_mos steps.
(`8932 <https://github.com/spacetelescope/jwst/issues/8932>`_)


outlier_detection (image3, tso3, spec3, coron3)
-----------------------------------------------

- Fix a bug that caused intermediate files to conflict for different slits when
a MultiSlitModel was processed. (`8782
<https://github.com/spacetelescope/jwst/issues/8782>`_)
- Decrease the amount of file I/O required to compute the median when in_memory
is set to False. (`8782
<https://github.com/spacetelescope/jwst/issues/8782>`_)
- For slit spectra, threshold outliers with a median error across exposures
instead of input error from the exposure itself. (`8828
<https://github.com/spacetelescope/jwst/issues/8828>`_)
- Moved median computers out of the jwst repository and into stcal. (`8840
<https://github.com/spacetelescope/jwst/issues/8840>`_)
- Update documentation to clarify the interaction between pipeline-level and
step-level `--in_memory` flags. (`8851
<https://github.com/spacetelescope/jwst/issues/8851>`_)
- Avoid modifying input and saving duplicate files when resample_data=False.
(`8853 <https://github.com/spacetelescope/jwst/issues/8853>`_)
- Remove deprecated nlow and nhigh parameters from outlier detection step.
(`8870 <https://github.com/spacetelescope/jwst/issues/8870>`_)
- reorganize outlier detection documentation (`8880
<https://github.com/spacetelescope/jwst/issues/8880>`_)


refpix (detector1)
------------------

- Implemented SIRS algorithm instead of running median for side pixels of NIR
full-frame data. Running median is still default. (`8726
<https://github.com/spacetelescope/jwst/issues/8726>`_)


resample (image2, image3, coron3)
---------------------------------

- Ignore the bounding_box in the inverse WCS transform in reproject. (`8554
<https://github.com/spacetelescope/jwst/issues/8554>`_)
- Permit creating drizzled models one at a time in many-to-many mode. (`8782
<https://github.com/spacetelescope/jwst/issues/8782>`_)
- Updated resample code to support the new ``drizzle`` API, see
https://github.com/spacetelescope/drizzle/pull/134 for more details. (`#8866
<https://github.com/spacetelescope/jwst/issues/8866>`_)
- Use s_region list to calculate output footprint instead of re-computing via
WCS transforms (`8893
<https://github.com/spacetelescope/jwst/issues/8893>`_)
- Removed allowed_memory parameter and DMODEL_ALLOWED_MEMORY environment
variable (`8975 <https://github.com/spacetelescope/jwst/issues/8975>`_)


resample_spec (spec2 MOS, spec3)
--------------------------------

- Update NIRSpec spectral resampling to add a missing correction factor in
resampled WCS tangent plane transformation. (`8908
<https://github.com/spacetelescope/jwst/issues/8908>`_)


rscd (detector1 MIR)
--------------------

- Updated RSCD step to work on segmented data (`8946
<https://github.com/spacetelescope/jwst/issues/8946>`_)


skymatch (image3)
-----------------

- Ignore the bounding_box of an observation when computing sky statistics.
(`8554 <https://github.com/spacetelescope/jwst/issues/8554>`_)
- Resolve warnings emitted by NumPy 2 when running skymatch. (`8892
<https://github.com/spacetelescope/jwst/issues/8892>`_)

1.16.1

===================

resample_spec
-------------

- Update NIRSpec spectral resampling to add a missing correction factor in resampled
WCS tangent plane transformation. [8908]

1.16.0

===================

align_refs
----------

- Compute alignment shifts from the first integration of the science exposure only. [8643]

- Fixed a bug where the aligned PSF was being saved as a 4-D array with the first axis being
identical; now it is saved as a 3-D array. [8747]

ami_average
-----------

- Fix error in step spec that prevents step creation. [8677]

assign_mtwcs
------------

- Step now uses `ModelLibrary` to handle accessing models consistently
whether they are in memory or on disk. [8683]

assign_wcs
----------

- Moved `update_s_region_imaging`, `update_s_region_keyword`, and `wcs_from_footprints`
into stcal. [8624]

- Add helper functions to copy only the necessary parts of the WCS so that
these parts can be used within loops, avoiding copying the full WCS within
a loop [8793]

associations
------------

- Restored slit name to level 3 product names for NIRSpec BOTS and background
fixed slit targets. [8699]

- Update warning message about use of paths in associations. [8752]

- Remove ``MultilineLogger`` and no longer set it as the default logger. [8781]

- Excluded nearby background candidates from NIRSpec fixed slit associations
for S1600A1 with 5 point dithers, to reduce overlap between background nods
and science exposure. [8744]

- Added association rule for level 3 image mosaic candidates. [8798]

badpix_selfcal
--------------

- Subtract pedestal dark when constructing min array across selfcal exposures
for MIRI MRS data. [8771]

calwebb_coron3
--------------

- Tighten tolerance of psf alignment. [8717]

calwebb_detector1
-----------------

- Added the optional ``clean_flicker_noise`` step between ``jump`` and
``ramp_fit``. [8669]

change_migration
----------------

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

clean_flicker_noise
-------------------

- Implemented this new optional step to clean transient flicker noise (e.g. 1/f noise)
from group images in ramp data. [8669]

cube_build
----------

- Removed direct setting of the ``self.skip`` attribute from within the step
itself. [8600]

- Fixed a bug when ``cube_build`` was called from the ``mrs_imatch`` step. [8728]

- Ensure that NaNs and DO_NOT_USE flags match up in all input data before
building a cube. [8557]

- Replaced deep copies of NIRSpec WCS objects within most loops. [8793]

- Allow the user to provide ra and dec shifts to apply for each file to fine
tune the WCS. [8720]

datamodels
----------

- Added `ModelLibrary` class to allow passing on-disk models between steps in the
image3 pipeline. [8683]

dark_current
------------

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

documentation
-------------

- Add changelog to documentation. [8716]

- Updated description of association keyword `expname`: including path information
in addition to the filename is discouraged, but allowed. [8789]

dq_init
--------

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

emicorr
-------

- Fixed a bug where MIRI EMI correction step would return NaNs when it was unable
to compute a correction. [8675]

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

extract_1d
----------

- Updated NIRISS SOSS extraction to utilize ``pastasoss``
rotation solution. [8763]

first_frame
-----------

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

flat_field
----------

- Ensure that NaNs and DO_NOT_USE flags match up in all science, error,
variance, and DQ extensions for all modes. [8557]

- Replaced deep copies of NIRSpec WCS objects within most loops [8793]

gain_scale
----------

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

general
-------

- Remove the unused ``stsci.image`` dependency. [8663]

- Update required stcal version to 1.8.0. [8706]

- Increase minimum required stpipe. [8713]

- Increase minimum required stdatamodels. [8797]

- bump dependency to use ``stcal 1.9.0`` [8808]

group_scale
-----------

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

ipc
---

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

jump
----

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

klip
----

- Allowed klip to ingest a single shifted 3-D PSF model instead of a 4-D structure
containing one shifted PSF per science integration. [8747]

lastframe
---------

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

linearity
---------

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

master_background
-----------------

- Either of ``"background"`` or ``"bkg"`` in slit name now defines the slit
as a background slit, instead of ``"bkg"`` only. [8600]

- Replaced deep copies of NIRSpec WCS objects within most loops [8793]

model_blender
-------------

- Allow incremental blending of models. [8759]

mrs_imatch
----------

- Added a deprecation warning and set the default to skip=True for the step. [8728]

msaflagopen
-----------

- Replaced deep copies of NIRSpec WCS objects within most loops. [8793]

nsclean
-------

- Changed subarray mode from operating on the entire array at once to
operating on sections of the array and smoothly combining these sections.
Due to the computational costs of matrix operations, this is a large
speedup that has little effect on the results. [8745]

- Merged implementation with the new ``clean_flicker_noise`` step. This step
can still be called from the ``calwebb_spec2`` pipeline on NIRSpec rate
data, but it is now deprecated. [8669]

- Replaced deep copies of NIRSpec WCS objects within most loops. [8793]

outlier_detection
-----------------

- Fixed failures due to a missing ``wcs.array_shape`` attribute when the
``outlier_detection`` step was run standalone using e.g. ``strun`` [8645]

- Refactored separate modes into submodules instead of inheriting from a base class.
Moved non-JWST-specific code to stcal. [8613]

- Fixed file names and output directory for intermediate resampled spectral
images. Intermediate files now have suffix ``outlier_s2d`` and are saved to
the output directory alongside final products. [8735]

- For imaging modes, step now uses `ModelLibrary` to handle accessing models consistently
whether they are in memory or on disk. [8683]

- Ensure that NaNs and DO_NOT_USE flags match up in all output science, error,
variance, and DQ extensions. [8557]

pathloss
--------

- Ensure that NaNs and DO_NOT_USE flags match up in all output science, error,
variance, and DQ extensions. [8557]

- Replaced deep copies of NIRSpec WCS objects within most loops [8793]

persistence
-----------

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

photom
------

- Ensure that NaNs and DO_NOT_USE flags match up in all output science, error,
variance, and DQ extensions. [8557]

- Replaced deep copies of NIRSpec WCS objects within most loops. [8793]

pipeline
--------

- Updated `calwebb_image3` to use `ModelLibrary` instead of `ModelContainer`, added
optional `on_disk` parameter to govern whether models in the library should be stored
in memory or on disk. [8683]

- Updated ``calwebb_spec2`` to run ``nsclean`` on NIRSpec imprint and background
association members. [8786, 8809]

- Updated `calwebb_spec3` to not save the `pixel_replacement` output by default.[8765]

- Replaced deep copies of NIRSpec WCS objects within most loops. [8793]

pixel_replace
-------------

- Replaced deep copies of NIRSpec WCS objects within most loops. [8793]

ramp_fitting
------------

- Moved the read noise variance recalculation for CHARGELOSS flagging to the C
implementation, when the algorithm is ``OLS_C``. [8697, spacetelescope/stcal278]

- Updated the flow of the detector 1 pipeline when selecting the ``LIKELY`` algorithm
for ramp fitting. The ramps must contain a minimum number of groups (4).[8631]

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

refpix
------

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

regtest
-------

- Added memory usage test for Detector1 pipeline. [8676]

resample
--------

- Fixed a typo in ``load_custom_wcs`` from ``array_shape`` to ``pixel_shape`` and
changed to use values in the top-level ASDF structure if the values in the WCS
are ``None``. [8698]

- Step now uses `ModelLibrary` to handle accessing models consistently
whether they are in memory or on disk. [8683]

- Ensure that NaNs and DO_NOT_USE flags match up in all input data before
resampling. [8557]

reset
-----

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

resample_spec
-------------

- Modified the output NIRSpec spectral WCS to sample the input data linearly in sky
coordinates, rather than slit coordinates, in order to conserve spectral
flux in default reductions. [8596]

- Updated handling for the ``pixel_scale_ratio`` parameter to apply only to the
spatial dimension, to match the sense of the parameter application to the
documented intent, and to conserve spectral flux when applied. [8596, 8727]

- Implemented handling for the ``pixel_scale`` parameter, which was previously
ignored for spectral resampling. [8596]

- Fixed a bug resulting in incorrect output slit coordinates for NIRSpec moving
targets in the ``calwebb_spec3`` pipeline. [8596]

- Separate ``resample_spec`` step parameters from ``resample`` step parameters
so that the spectral resampling step only exposes parameters that are appropriate
for spectral data. [8622]

- Ensure that NaNs and DO_NOT_USE flags match up in all input data before
resampling. [8557]

rscd
----

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

saturation
----------

- Add option for using the readout pattern information to improve saturation flagging
in grouped data. [8731]

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

scripts
-------

- Removed many non-working and out-dated scripts. Including
many scripts that were replaced by ``strun``. [8619]

set_telescope_pointing
----------------------

- Replace usage of ``copy_arrays=True`` with ``memmap=False`` [8660]

skymatch
--------

- Step now uses `ModelLibrary` to handle accessing models consistently
whether they are in memory or on disk. [8683]

stpipe
------

- Removed setting of the `self.skip` attribute in the `record_step_status()` function;
added a `query_step_status()` function to use as an alternative to checking
`self.skip`. [8600]

- Log jwst version at end of `Step.run`. [8769]

superbias
---------

- Removed unnecessary copies, and created a single copy at step.py level. [8676]

tso_photometry
--------------

- Replaced photutils.aperture do_photometry with photutils.ApertureStats to remove NaNs
when performing TSO photometry for non SUB64 WLP8 pupil data. For SUB64 WLP8 changed
summing data in the aperture to use np.nansum to ignore NaNs. [8672]

tweakreg
--------

- Updated requirement for ``tweakwcs`` to version ``0.8.8`` which fixes a crash
in the ``tweakreg`` step due to a ``MalformedPolygonError`` exception being
raised by the ``spherical_geometry`` package for some data
sets. [8657, spacetelescope/tweakwcs205]

- Moved all realignment methods to stcal. [8624]

- Removed direct setting of the ``self.skip`` attribute from within the step
itself. [8600]

- Step now uses `ModelLibrary` to handle accessing models consistently
whether they are in memory or on disk. [8683]

1.15.1

===================

ramp_fitting
------------

- Fix bugs in the C algorithm Poisson variance calculation when provided with an average dark current. [stcal269]

- Use the C extension with multiprocessing. [stcal268]

1.15.0

===================

ami
---

- Replaced deprecated ``np.mat()`` with ``np.asmatrix()``. [8415]

- Allow ``ami_analyze`` to run on ``cal`` files. [8451]

assign_wcs
----------

- Change MIRI LRS WCS code to handle the tilted trace via a centroid shift as a function
of pixel row rather than a rotation of the pixel coordinates. The practical impact is
to ensure that iso-lambda is along pixel rows after this change. [8411]

- Fixed test for NIRCam TSGRISM mode. [8449]

- Move the assigned source position for dedicated NIRSpec MOS background slits from the
lower left corner of the slit to the middle of the slit. [8461]

- Updated the routines that load NIRSpec MOS slit and source data from the MSA meta
data file to properly handle background and virtual slits, and assign appropriate
meta data to them for use downstream. [8442, 8533]

- Update default parameters to increase the accuracy of the SIP approximation
in the output FITS WCS. [8529]

- Update MIRI LRS WCS code to introduce an intermediate alpha-beta slit reference frame
between pixel coordinates and the v2/v3 frame. [8475]

- Added handling for fixed slit sources defined in a MSA metadata file, for combined
NIRSpec MOS and fixed slit observations. Slits are now appended to the data
product in the order they appear in the MSA file. [8467]

associations
------------

- Ensure NRS IFU exposures don't make a spec2 association for grating/filter combinations
where the nrs2 detector isn't illuminated. Remove dupes in mkpool. [8395]

- Match NIRSpec imprint observations to science exposures on mosaic tile location
and dither pointing, ``MOSTILNO`` and ``DITHPTIN``. [8410]

- Updated Level3 rules for new handling of NIRSpec MOS source_id formatting when
constructing output file names. [8442]

- Added default values for new non-header keywords (``MOSTILNO`` and ``DITHPTIN``)
to the default values in the ``asn_make_pool`` script. [8508]

- Create WFSS Pure-Parallel associations. [8528]

- Add NIRSpec optical path constraints for TSO associations. [8537]

- Exclude NIRISS SOSS data taken with uncalibrated filter F277W from spec2 and
tso3 associations. [8549]

background_subtraction
----------------------

- Clarified MIRI MRS default/optional background subtraction steps in the
documentation pages. [8582]

badpix_selfcal
--------------

- Added new optional step ``badpix_selfcal`` to the spec2 pipeline to self-calibrate
bad pixels in IFU data. [8500]

combine_1d
----------

- Fix weights for combining errors from 1D spectra. [8520]

dark_current
------------

- Add log info message when specifying an average_dark_current for noise calculations.
[8425]

documentation
-------------

- Added docs for the NIRSpec MSA metadata file to the data products area of RTD.
[8399]

- Added documentation for multiprocessing. [8408]

- Added documentation for NIRCam GRISM time series pointing offsets. [8449]

emicorr
--------

- Improved running time by introducing a new parameter, use_n_cycles, that can
be modified by the user and has a default of 3. Now the user can either provide
the number of integrations to phase or the number of cycles to calculate the
number of integrations necessary to phase. Additionally fix a bug in applying
emicorr to data with nints > 1, and improve runtime in the phase amplitude
loop. [8589]

exp_to_source
-------------

- Modified slit sorting to use `source_name` as the key, rather than `source_id`,
in order to support changes in `source_id` handling for NIRSpec MOS exposures
that contain background and virtual slits. [8442]

- Update the top-level model exposure type from the slit exposure type,
to support processing for combined NIRSpec MOS and fixed slit
observations. [8467]

extract_1d
----------

- Added a hook to bypass the ``extract_1d`` step for NIRISS SOSS data in
the F277W filter with warning. [8275]

- Replaced deprecated ``np.trapz`` with ``np.trapezoid()``. [8415]

- Fix a crash in ``extract_1d`` encountered when multiple background or source
regions are specified and the lower and upper limits for one of them are
outside the valid area for some data range. [8433]

- Correct the output slit name for non-primary slit extractions in the
spec3 pipeline, for NIRSpec fixed slit mode. [8470]

- Add ``ifu_covar_scale`` parameter to help correct for IFU cube covariance. [8457]

- Add propagation of uncertainty when annular backgrounds are subtracted
from source spectra during IFU spectral extraction. [8515]

- Add propagation of background uncertainty when background is subtracted from
source spectra during non-IFU spectral extraction. [8532]

- Fix error in application of aperture correction to variance arrays. [8530]

- Fix error in ``_coalesce_bounds`` that returned incorrect spectral or background
extraction region when one set of pixel limits is entirely contained within
another [8586]

- Removed a check for the primary slit for NIRSpec fixed slit mode:
all slits containing point sources are now handled consistently,
whether they are marked primary or not. [8467]

- Added functionality to the phase-based aperture correction object to support
reuse of aperture correction objects across multiple integrations. [8609]

- Changed extract.py to attempt to tabulate and reuse an aperture correction
object in integrations after the first one. This can save a very large
amount of time in BOTS reductions. [8609]

extract_2d
----------

- Added handling for NIRCam GRISM time series pointing offsets. [8449]

- Added support for slit names that have string values instead of integer
values, necessary for processing combined NIRSpec MOS and fixed slit
data products. [8467]

- Assign slit ``source_xpos`` and ``source_ypos`` attributes here instead of
in ``wavecorr`` for NIRSpec FS data. [8569]

flat_field
----------

- Update the flatfield code for NIRSpec IFU data to ensure that SCI=ERR=NaN and
DQ has the DO_NOT_USE flag set outside the footprint of the IFU slices [8385]

- Update NIRSpec flatfield code for all modes to ensure SCI=ERR=NaN wherever the
DO_NOT_USE flag is set in the DQ array. [8463]

- Updated the NIRSpec flatfield code to use the new format of the ``wavecorr``
wavelength zero-point corrections for point sources. [8376]

- Removed a check for the primary slit for NIRSpec fixed slit mode:
all slits containing point sources are now handled consistently,
whether they are marked primary or not. [8467]

general
-------

- Require numpy<2.0. [8565]

- Removed deprecated stdatamodels model types ``DrizProductModel``,
``MIRIRampModel``, and ``MultiProductModel``. [8388]

- Increase minimum required scipy. [8441]

- Increase minimum required stdatamodels and stpipe. [8592]

- build with Numpy 2.0 release candidate to address ABI changes [8527]

lib
---

- Updated the ``wcs_utils.get_wavelength`` to use the new format
of the ``wavecorr`` wavelength zero-point corrections for point
sources in NIRSpec slit data. [8376]

master_background
-----------------

- Removed a check for the primary slit for NIRSpec fixed slit mode:
all slits containing point sources are now handled consistently,
whether they are marked primary or not. [8467]

- Disabled support for master background correction for NIRSpec MOS
slits in the ``master_background``, called in ``calwebb_spec3``.
Master background correction for MOS mode should be performed
via ``master_background_mos``, called in ``calwebb_spec2``. [8467]

- Use zero values for master background outside the background
wavelength range instead of NaN to avoid NaN-ing out entire
sets of science data when backgrounds are missing. [8597]


master_background_mos
---------------------

- Updated check for NIRSpec MOS background slits to use new naming convention:
``slit.source_name`` now contains the string "BKG" instead of
"background". [8533]

nsclean
-------

- Improved run time of NSClean.fit() by using a vector rather than a large,
sparse matrix to perform linear algebra operations with a diagonal weight
matrix. [8547]

- Added a check for combined NIRSpec MOS and fixed slit products: if fixed
slits are defined in a MOS product, the central fixed slit quadrant
is not automatically masked. [8467]

outlier_detection
-----------------

- Add association id to ``outlier_i2d`` intermediate filenames. [8418]

- Pass the ``weight_type`` parameter to all resampling function calls so that
the default weighting can be overridden by the input step parameter. [8290]

- Remove unused ``OutlierDetectionScaledStep``,
``OutlierDetectionStackStep``, ``outlierpars`` reference file handling,
and ``scale_detection`` (an unused argument). [8438]

- Intermediate output files are now correctly removed after the step has
finished, unless save_intermediate_results is True. This PR also addressed
the _i2d files not being saved in the specified output directory. [8464]

- Removed the setting of `self.skip = True` when the step gets skipped (due to
inappropriate inputs), so that the step still executes when called again
while processing a list of multiple sources. [8442]

- Added tests for changes made in 8464. [8481]

- Added the option to use a rolling median instead of a simple median
to detect outliers in TSO data, with user-defined
rolling window width via the ``rolling_window_width`` parameter. [8473]

- Fixed a bug that led to small total flux offsets between input and blotted
images if the nominal and actual wcs-computed pixel areas were different. [8553]

- Deprecate ``nlow`` and ``nhigh`` parameters, which no longer have an effect. [8603]

- Fix errors in documentation describing arguments. [8603]

- Re-enabled saving of blot models when `save_intermediate_results` is True. [8758]

- Fixed a bug that caused different results from the median calculation when the
`in_memory` parameter was set to `True` vs `False`. [8777]

pathloss
--------

- Updated pathloss calculations for NIRSpec fixed slit mode to use the appropriate
wavelengths for point and uniform sources if the ``wavecorr`` wavelength
zero-point corrections for point sources have been applied. [8376]

photom
------

- Ensure that NaNs in MRS photom files are not replaced with ones by
pipeline code for consistency with other modes [8453]

- Removed a check for the primary slit for NIRSpec fixed slit mode:
all slits containing point sources are now handled consistently,
whether they are marked primary or not. [8467]

- Added a hook to bypass the ``photom`` step when the ``extract_1d`` step
was bypassed for non-TSO NIRISS SOSS exposures. [8575]


pipeline
--------

- Fixed a bug in the ``calwebb_spec2`` and ``calwebb_image2`` pipelines
that was causing them not to respect the ``output_file`` parameter. [8368]

- Removed unused ``scale_detection`` argument from ``calwebb_tso3``
pipeline. [8438]

- Updated the ``calwebb_spec3`` pipeline handling of NIRSpec MOS inputs, to
comply with the new scheme for source ("s"), background ("b"), and
virtual ("v") slits and the construction of output file names for each
type. [8442]

- Added new optional step ``badpix_selfcal`` to the ``calwebb_spec2`` to self-calibrate
bad pixels in IFU data. [8500]

- Added ``calwebb_spec2`` pipeline handling for combined NIRSpec MOS and
fixed slit observations. Steps that require different reference files
for MOS and FS are run twice, first for all MOS slits, then for all
FS slits. Final output products (``cal``, ``s2d``, ``x1d``) contain the
combined products. [8467]

- Added a hook to skip ``photom`` step when the ``extract_1d`` step was skipped
for NIRISS SOSS data [8575].

- Added hook to the ``calwebb_tso3`` pipeline to skip all subsequent steps
if the ``extract_1d`` step is skipped. [8583]

pixel_replace
-------------

- Moved pixel_replace in the calwebb_spec2 pipeline and added it to the calwebb_spec3
pipeline. In both pipelines it is now executed immediately before resample_spec/cube_build. [8409]

- Added estimated errors and variances for replaced pixels, following the
interpolation scheme used for the data. [8504]

ramp_fitting
------------

- Changed the data type for several variables in ramp_fitting
to use uint16 instead of uint8, in order to avoid potential
overflow/wraparound problems. [8377]

- Changed the spec for ramp fitting that allows for selecting
the algorithm "OLS" to use the python implementation of ramp
fitting or "OLS_C" to use the C extension implementation of
ramp fitting. [8503]

- Made "OLS_C" the default algorithm for ramp fitting. [8607]

refpix
------

- Use ``double`` for fft filter coefficients to improve compatibility
across system. [8512]

resample
--------

- Remove sleep in median combination added in 8305 as it did not address
the issue in operation [8419]

- Update variance handling to propagate resampled variance components with
weights that match the science `weight_type`. [8437]

- Change `fillval` parameter default from INDEF to NaN [8488]

- Removed the use of the `drizpars` reference file [8546]

resample_spec
-------------

- Populate the wavelength array in resampled `Slit` and `MultiSlit` models. [8374]

- Change `fillval` parameter default from INDEF to NaN [8488]

- Fix a bug resulting in large WCS errors in the resampled image's WCS
when the slit was closely aligned with the RA direction
sky. [8511]

- Removed the use of the `drizpars` reference file [8546]

- Fix a bug resulting in incorrect output spectral WCS for NIRSpec data when
the first input data set is filled with zero or NaN. [8562]

residual_fringe
---------------

- Use DQ plane to exclude pixels marked as DO_NOT_USE in correction. [8381]

srctype
-------

- Reset ``source_xpos`` and ``source_ypos`` values to zero for extended sources
in NIRSpec FS data to enable assigning those attributes in ``extract_2d``. [8569]

saturation
----------

- Adds a check for saturation bias in group 2 for IRS2 mode nframes > 1. [8593]

tweakreg
--------

- Output source catalog file now respects ``output_dir`` parameter. [8386]

- Improved how a image group name is determined. [8426]

- Refactor step to work towards performance improvements. [8424]

- Changed default settings for ``abs_separation`` parameter for the ``tweakreg``
step to have a value compatible with the ``abs_tolerance`` parameter. [8445]

- Improve error handling in the absolute alignment. [8450, 8477]

- Change code default to use IRAF StarFinder instead of
DAO StarFinder. [8487]

- Add new step parameters to control SIP approximation in the output FITS WCS,
matching the default values used in the ``assign_wcs`` step. [8529]

- Added a check for ``(abs_)separation`` and ``(abs_)tolerance`` parameters
that ``separation`` > ``sqrt(2) * tolerance`` that will now log an error
message and skip ``tweakreg`` step when this condition is not satisfied and
source confusion is possible during catalog matching. [8476]

wavecorr
--------

- Changed the NIRSpec wavelength correction algorithm to include it in slit WCS
models and resampling. Fixed the sign of the wavelength corrections. [8376]

- Added a check for fixed slits that already have source position information,
assigned via a MSA metafile, for combined NIRSpec MOS and fixed slit processing.
Point source position is calculated from dither offsets only for standard
fixed slit processing. [8467]

- Assign slit ``source_xpos`` and ``source_ypos`` attributes in ``extract_2d``
instead of in ``wavecorr`` for NIRSpec FS data. [8569]

wfss_contam
-----------

- Fixed flux scaling issue in model contamination image by adding background
subtraction and re-scaling fluxes to respect wavelength oversampling. [8416]

Page 1 of 16

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.