Skip to content

Commit

Permalink
py-gwcs: update to 0.21.0.
Browse files Browse the repository at this point in the history
0.21.0 (2024-03-10)
-------------------

- Improve documentation. [#483]

- Add a minimum version requirement for ``asdf-wcs-schemas``. [#491]

- Fix ``WCS.__str__`` for instances without transforms. [#489]

0.20.0 (2023-11-29)
-------------------

- Replace ``pkg_resources`` with ``importlib.metadata``. [#478]

- Serialize and deserialize ``pixel_shape`` with asdf. [#480]

0.19.0 (2023-09-15)
-------------------

Bug Fixes
^^^^^^^^^

- Synchronize ``array_shape`` and ``pixel_shape`` attributes of WCS
  objects. [#439]

- Fix failures and warnings with numpy 2.0. [#472]

other
^^^^^

- Remove deprecated old ``bounding_box``. The new implementation is released with
  astropy v 5.3. [#458]

- Refactor ``CoordinateFrame.axis_physical_types``. [#459]

- ``StokesFrame`` uses now ``astropy.coordinates.StokesCoord``. [#452]

- Dropped support for Python 3.8. [#451]

- Fixed a call to ``astropy.coordinates`` in ``wcstools.wcs_from_points``. [#448]

- Code and docstrings clean up. [#460]

- Register all available asdf extension manifests from ``asdf-wcs-schemas``
  except 1.0.0 (which contains duplicate tag versions). [#469]

- Register empty extension for 1.0.0 to avoid warning about a missing
  extension when opening old files. [#475]


0.18.3 (2022-12-23)
-------------------
Bug Fixes
^^^^^^^^^

- Fixed a bug in the estimate of pixel scale in the iterative inverse
  code. [#423]

- Fixed constant term in the polynomial used for SIP fitting.
  Improved stability and accuracy of the SIP fitting code. [#427]


0.18.2 (2022-09-07)
-------------------
Bug Fixes
^^^^^^^^^

- Corrected the reported requested forward SIP accuracy and reported fit
  residuals by ``to_fits_sip()`` and ``to_fits()``. [#413, #419]

- Fixed a bug due to which the check for divergence in ``_fit_2D_poly()`` and
  hence in ``to_fits()`` and ``to_fits_sip()`` was ignored. [#414]

New Features
^^^^^^^^^^^^

0.18.1 (2022-03-15)
-------------------
Bug Fixes
^^^^^^^^^

- Remove references to the ``six`` package. [#402]

0.18.0 (2021-12-22)
-------------------
Bug Fixes
^^^^^^^^^

- Updated code in ``region.py`` with latest improvements and bug fixes
  from ``stsci.skypac.regions.py`` [#382]

- Added support to ``_compute_lon_pole()`` for computation of ``lonpole``
  for all projections from ``astropy.modeling.projections``. This also
  extends support for different projections in ``wcs_from_fiducial()``. [#389]

New Features
^^^^^^^^^^^^

- Enabled ``CompoundBoundingBox`` support for wcs. [#375]

- Moved schemas to standalone package ``asdf-wcs-schemas``.
  Reworked the serialization code to use ASDF converters. [#388]

0.17.1 (2021-11-27)
-------------------

Bug Fixes
^^^^^^^^^

- Fixed a bug with StokesProfile and array types. [#384]


0.17.0 (2021-11-17)
-------------------
Bug Fixes
^^^^^^^^^

- `world_axis_object_components` and `world_axis_object_classes` now ensure
  unique keys in `CompositeFrame` and `CoordinateFrame`. [#356]

- Fix issue where RuntimeWarning is raised when there are NaNs in coordinates
  in angle wrapping code [#367]

- Fix deprecation warning when wcs is initialized with a pipeline [#368]

- Use ``CD`` formalism in ``WCS.to_fits_sip()``. [#380]


New Features
^^^^^^^^^^^^
- ``wcs_from_points`` now includes fitting for the inverse transform. [#349]

- Generalized ``WCS.to_fits_sip`` to be able to create a 2D celestial FITS WCS
  from celestial subspace of the ``WCS``. Also, now `WCS.to_fits_sip``
  supports arbitrary order of output axes. [#357]


API Changes
^^^^^^^^^^^
- Modified interface to ``wcs_from_points`` function to better match analogous function
  in astropy. [#349]

- ``Model._BoundingBox`` was renamed to ``Model.ModelBoundingBox``. [#376, #377]

0.16.1 (2020-12-20)
-------------------
Bug Fixes
^^^^^^^^^
- Fix a regression with ``pixel_to_world`` for output frames with one axis. [#342]

0.16.0 (2020-12-18)
-------------------
New Features
^^^^^^^^^^^^

- Added an option to `to_fits_sip()` to be able to specify the reference
  point (``crpix``) of the FITS WCS. [#337]

- Added support for providing custom range of degrees in ``to_fits_sip``. [#339]

Bug Fixes
^^^^^^^^^

- ``bounding_box`` now works with tuple of ``Quantities``. [#331]

- Fix a formula for estimating ``crpix`` in ``to_fits_sip()`` so that ``crpix``
  is near the center of the bounding box. [#337]

- Allow sub-pixel sampling of the WCS model when computing SIP approximation in
  ``to_fits_sip()``. [#338]

- Fixed a bug in ``to_fits_sip`` due to which ``inv_degree`` was ignored. [#339]
  • Loading branch information
0-wiz-0 committed May 15, 2024
1 parent 96a4ba2 commit 9277f19
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 78 deletions.
19 changes: 12 additions & 7 deletions math/py-gwcs/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.6 2023/08/01 23:20:46 wiz Exp $
# $NetBSD: Makefile,v 1.7 2024/05/15 07:01:41 wiz Exp $

DISTNAME= gwcs-0.15.0
DISTNAME= gwcs-0.21.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_PYPI:=g/gwcs/}

Expand All @@ -11,12 +10,18 @@ HOMEPAGE= https://gwcs.readthedocs.io/en/latest/
COMMENT= Generalized World Coordinate System
LICENSE= modified-bsd

DEPENDS+= ${PYPKGPREFIX}-scipy>=1.1:../../math/py-scipy
DEPENDS+= ${PYPKGPREFIX}-astropy>=4.2:../../math/py-astropy
DEPENDS+= ${PYPKGPREFIX}-asdf>=2.7.1:../../math/py-asdf
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=0:../../devel/py-setuptools_scm
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0:../../devel/py-wheel
DEPENDS+= ${PYPKGPREFIX}-asdf>=2.8.1:../../math/py-asdf
DEPENDS+= ${PYPKGPREFIX}-asdf_astropy>=0.2.0:../../math/py-asdf_astropy
DEPENDS+= ${PYPKGPREFIX}-asdf_wcs_schemas>=0.4.0:../../math/py-asdf_wcs_schemas
DEPENDS+= ${PYPKGPREFIX}-astropy>=5.3:../../math/py-astropy
DEPENDS+= ${PYPKGPREFIX}-scipy>=0:../../math/py-scipy
TEST_DEPENDS+= ${PYPKGPREFIX}-test-doctestplus>=0:../../devel/py-test-doctestplus

PYTHON_VERSIONS_INCOMPATIBLE= 27 38

.include "../../math/py-numpy/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
116 changes: 49 additions & 67 deletions math/py-gwcs/PLIST
Original file line number Diff line number Diff line change
@@ -1,16 +1,42 @@
@comment $NetBSD: PLIST,v 1.1 2020/12/19 14:54:00 mef Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
@comment $NetBSD: PLIST,v 1.2 2024/05/15 07:01:41 wiz Exp $
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/gwcs/__init__.py
${PYSITELIB}/gwcs/__init__.pyc
${PYSITELIB}/gwcs/__init__.pyo
${PYSITELIB}/gwcs/api.py
${PYSITELIB}/gwcs/api.pyc
${PYSITELIB}/gwcs/api.pyo
${PYSITELIB}/gwcs/converters/__init__.py
${PYSITELIB}/gwcs/converters/__init__.pyc
${PYSITELIB}/gwcs/converters/__init__.pyo
${PYSITELIB}/gwcs/converters/geometry.py
${PYSITELIB}/gwcs/converters/geometry.pyc
${PYSITELIB}/gwcs/converters/geometry.pyo
${PYSITELIB}/gwcs/converters/selector.py
${PYSITELIB}/gwcs/converters/selector.pyc
${PYSITELIB}/gwcs/converters/selector.pyo
${PYSITELIB}/gwcs/converters/spectroscopy.py
${PYSITELIB}/gwcs/converters/spectroscopy.pyc
${PYSITELIB}/gwcs/converters/spectroscopy.pyo
${PYSITELIB}/gwcs/converters/tests/__init__.py
${PYSITELIB}/gwcs/converters/tests/__init__.pyc
${PYSITELIB}/gwcs/converters/tests/__init__.pyo
${PYSITELIB}/gwcs/converters/tests/test_selector.py
${PYSITELIB}/gwcs/converters/tests/test_selector.pyc
${PYSITELIB}/gwcs/converters/tests/test_selector.pyo
${PYSITELIB}/gwcs/converters/tests/test_transforms.py
${PYSITELIB}/gwcs/converters/tests/test_transforms.pyc
${PYSITELIB}/gwcs/converters/tests/test_transforms.pyo
${PYSITELIB}/gwcs/converters/tests/test_wcs.py
${PYSITELIB}/gwcs/converters/tests/test_wcs.pyc
${PYSITELIB}/gwcs/converters/tests/test_wcs.pyo
${PYSITELIB}/gwcs/converters/wcs.py
${PYSITELIB}/gwcs/converters/wcs.pyc
${PYSITELIB}/gwcs/converters/wcs.pyo
${PYSITELIB}/gwcs/coordinate_frames.py
${PYSITELIB}/gwcs/coordinate_frames.pyc
${PYSITELIB}/gwcs/coordinate_frames.pyo
Expand All @@ -20,81 +46,31 @@ ${PYSITELIB}/gwcs/extension.pyo
${PYSITELIB}/gwcs/geometry.py
${PYSITELIB}/gwcs/geometry.pyc
${PYSITELIB}/gwcs/geometry.pyo
${PYSITELIB}/gwcs/gwcs_types.py
${PYSITELIB}/gwcs/gwcs_types.pyc
${PYSITELIB}/gwcs/gwcs_types.pyo
${PYSITELIB}/gwcs/region.py
${PYSITELIB}/gwcs/region.pyc
${PYSITELIB}/gwcs/region.pyo
${PYSITELIB}/gwcs/schemas/__init__.py
${PYSITELIB}/gwcs/schemas/__init__.pyc
${PYSITELIB}/gwcs/schemas/__init__.pyo
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/celestial_frame-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/composite_frame-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/direction_cosines-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/direction_cosines-1.1.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/frame-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/frame2d-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/grating_equation-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/grating_equation-1.1.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/label_mapper-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/label_mapper-1.1.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/regions_selector-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/regions_selector-1.1.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/sellmeier_glass-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/sellmeier_glass-1.1.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/sellmeier_zemax-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/sellmeier_zemax-1.1.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/snell3d-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/snell3d-1.1.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/spectral_frame-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/spherical_cartesian-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/spherical_cartesian-1.1.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/step-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/step-1.1.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/stokes_frame-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/temporal_frame-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/wcs-1.0.0.yaml
${PYSITELIB}/gwcs/schemas/stsci.edu/gwcs/wcs-1.1.0.yaml
${PYSITELIB}/gwcs/selector.py
${PYSITELIB}/gwcs/selector.pyc
${PYSITELIB}/gwcs/selector.pyo
${PYSITELIB}/gwcs/spectroscopy.py
${PYSITELIB}/gwcs/spectroscopy.pyc
${PYSITELIB}/gwcs/spectroscopy.pyo
${PYSITELIB}/gwcs/tags/__init__.py
${PYSITELIB}/gwcs/tags/__init__.pyc
${PYSITELIB}/gwcs/tags/__init__.pyo
${PYSITELIB}/gwcs/tags/geometry_models.py
${PYSITELIB}/gwcs/tags/geometry_models.pyc
${PYSITELIB}/gwcs/tags/geometry_models.pyo
${PYSITELIB}/gwcs/tags/selectortags.py
${PYSITELIB}/gwcs/tags/selectortags.pyc
${PYSITELIB}/gwcs/tags/selectortags.pyo
${PYSITELIB}/gwcs/tags/spectroscopy_models.py
${PYSITELIB}/gwcs/tags/spectroscopy_models.pyc
${PYSITELIB}/gwcs/tags/spectroscopy_models.pyo
${PYSITELIB}/gwcs/tags/tests/__init__.py
${PYSITELIB}/gwcs/tags/tests/__init__.pyc
${PYSITELIB}/gwcs/tags/tests/__init__.pyo
${PYSITELIB}/gwcs/tags/tests/test_selector.py
${PYSITELIB}/gwcs/tags/tests/test_selector.pyc
${PYSITELIB}/gwcs/tags/tests/test_selector.pyo
${PYSITELIB}/gwcs/tags/tests/test_transforms.py
${PYSITELIB}/gwcs/tags/tests/test_transforms.pyc
${PYSITELIB}/gwcs/tags/tests/test_transforms.pyo
${PYSITELIB}/gwcs/tags/tests/test_wcs.py
${PYSITELIB}/gwcs/tags/tests/test_wcs.pyc
${PYSITELIB}/gwcs/tags/tests/test_wcs.pyo
${PYSITELIB}/gwcs/tags/wcs.py
${PYSITELIB}/gwcs/tags/wcs.pyc
${PYSITELIB}/gwcs/tags/wcs.pyo
${PYSITELIB}/gwcs/tests/__init__.py
${PYSITELIB}/gwcs/tests/__init__.pyc
${PYSITELIB}/gwcs/tests/__init__.pyo
${PYSITELIB}/gwcs/tests/conftest.py
${PYSITELIB}/gwcs/tests/conftest.pyc
${PYSITELIB}/gwcs/tests/conftest.pyo
${PYSITELIB}/gwcs/tests/data/__init__.py
${PYSITELIB}/gwcs/tests/data/__init__.pyc
${PYSITELIB}/gwcs/tests/data/__init__.pyo
${PYSITELIB}/gwcs/tests/data/acs.hdr
${PYSITELIB}/gwcs/tests/data/acs_wfc.hdr
${PYSITELIB}/gwcs/tests/data/miri_lrs_wcs.asdf
${PYSITELIB}/gwcs/tests/data/miriwcs.asdf
${PYSITELIB}/gwcs/tests/data/nircamwcs.asdf
${PYSITELIB}/gwcs/tests/data/simple_wcs2.hdr
${PYSITELIB}/gwcs/tests/data/stokes.txt
${PYSITELIB}/gwcs/tests/test_api.py
${PYSITELIB}/gwcs/tests/test_api.pyc
${PYSITELIB}/gwcs/tests/test_api.pyo
Expand All @@ -104,6 +80,9 @@ ${PYSITELIB}/gwcs/tests/test_api_slicing.pyo
${PYSITELIB}/gwcs/tests/test_coordinate_systems.py
${PYSITELIB}/gwcs/tests/test_coordinate_systems.pyc
${PYSITELIB}/gwcs/tests/test_coordinate_systems.pyo
${PYSITELIB}/gwcs/tests/test_extension.py
${PYSITELIB}/gwcs/tests/test_extension.pyc
${PYSITELIB}/gwcs/tests/test_extension.pyo
${PYSITELIB}/gwcs/tests/test_geometry.py
${PYSITELIB}/gwcs/tests/test_geometry.pyc
${PYSITELIB}/gwcs/tests/test_geometry.pyo
Expand All @@ -119,6 +98,9 @@ ${PYSITELIB}/gwcs/tests/test_utils.pyo
${PYSITELIB}/gwcs/tests/test_wcs.py
${PYSITELIB}/gwcs/tests/test_wcs.pyc
${PYSITELIB}/gwcs/tests/test_wcs.pyo
${PYSITELIB}/gwcs/tests/utils.py
${PYSITELIB}/gwcs/tests/utils.pyc
${PYSITELIB}/gwcs/tests/utils.pyo
${PYSITELIB}/gwcs/utils.py
${PYSITELIB}/gwcs/utils.pyc
${PYSITELIB}/gwcs/utils.pyo
Expand Down
8 changes: 4 additions & 4 deletions math/py-gwcs/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.3 2021/10/26 10:56:01 nia Exp $
$NetBSD: distinfo,v 1.4 2024/05/15 07:01:41 wiz Exp $

BLAKE2s (gwcs-0.15.0.tar.gz) = 4349470fa10466347f5e93361c90a4ff50c8deb8cab713a927319b7176e23741
SHA512 (gwcs-0.15.0.tar.gz) = 3ae8f9ea6e46666bd578a098b942099bbe53918009dd0a8e52fec252f6e5216d0271effd49d193ed850e5e164667fcc8b464bfe128c6899b0e8c39b27362a146
Size (gwcs-0.15.0.tar.gz) = 167453 bytes
BLAKE2s (gwcs-0.21.0.tar.gz) = c366d39f2d59aa569e7e972825619b85c960a38abf8f4355d4c25f61f0c0b96a
SHA512 (gwcs-0.21.0.tar.gz) = cccc914f4a74f1e306bbe88169178be5090240ffddd0b9a2006d67be659dc66b7fd33458a1b6e94e72da4dd731d8587456e3ab69add48036226130eaf728ab6b
Size (gwcs-0.21.0.tar.gz) = 195866 bytes

0 comments on commit 9277f19

Please sign in to comment.