From de39de07b6f0380860caa86e8485666b4cef35c2 Mon Sep 17 00:00:00 2001 From: Mihai Cara Date: Thu, 18 Jul 2024 13:47:46 -0400 Subject: [PATCH] JP-3636: Fix crash in tweakreg due to MalformedPolygonError (#8657) Co-authored-by: Nadia Dencheva --- CHANGES.rst | 26 ++++++++++++++++---------- pyproject.toml | 2 +- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index b5e9fecd8b..c581f1cb4c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -23,14 +23,14 @@ master_background outlier_detection ----------------- -- Fixed failures due to a missing ``wcs.array_shape`` attribute when the +- Fixed failures due to a missing ``wcs.array_shape`` attribute when the ``outlier_detection`` step was run standalone using e.g. ``strun`` [#8645] 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 + added a `query_step_status()` function to use as an alternative to checking `self.skip`. [#8600] tweakreg @@ -39,6 +39,12 @@ tweakreg - Removed direct setting of the ``self.skip`` attribute from within the step itself. [#8600] +- 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/tweakwcs#205] + + 1.15.1 (2024-07-08) =================== @@ -182,7 +188,7 @@ extract_1d - 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 +- 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] @@ -190,7 +196,7 @@ extract_1d - 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] @@ -203,7 +209,7 @@ extract_2d - 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] @@ -312,8 +318,8 @@ outlier_detection pathloss -------- -- Updated pathloss calculations for NIRSpec fixed slit mode to use the appropriate - wavelengths for point and uniform sources if the ``wavecorr`` wavelength +- 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 @@ -354,7 +360,7 @@ pipeline - 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] @@ -424,7 +430,7 @@ residual_fringe srctype ------- -- Reset ``source_xpos`` and ``source_ypos`` values to zero for extended sources +- 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 @@ -470,7 +476,7 @@ wavecorr - Assign slit ``source_xpos`` and ``source_ypos`` attributes in ``extract_2d`` instead of in ``wavecorr`` for NIRSpec FS data. [#8569] - + wfss_contam ----------- diff --git a/pyproject.toml b/pyproject.toml index 523c454aca..b422963bf4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ dependencies = [ "stsci.image>=2.3.5", "stsci.imagestats>=1.6.3", "synphot>=1.2", - "tweakwcs>=0.8.6", + "tweakwcs>=0.8.8", "asdf-astropy>=0.3.0", "wiimatch>=0.2.1", "packaging>20.0",