Tweakwcs

Latest version: v0.8.9

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

Scan your dependencies

Page 6 of 7

0.4.0

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

- Matched indices, linear fit results and fit residuals are now set in the
input "WCS catalogs" ``meta['fit_info']`` instead of
``meta['tweakwcs_info']``. [57]

- Updated example notebook to reflect changes to API. [57]

- Allow ``TPWCS`` classes to set ``meta`` during object instantiation.
This allows attaching, for example, a source catalog to the tangent-plane
WCS corrector object. [57]

- ``align_wcs`` no longer supports ``NDData`` input. Instead catalogs can be
provided directly in the ``meta`` attribute of ``TPWCS``-derived WCS
"correctors". This fundamentally transfers the responsibility of
instantiating the correct tangent-plane WCS to the caller. This, in turn,
will allow future WCS to be supported by providing a custom ``TPWCS``-derived
corrector defined externally to ``tweakwcs`` package. Second benefit is that
image data no longer need to be kept in memory in ``NDData`` objects as
image data are not needed for image alignment once catalogs have been
created. [57]

- Renamed ``tweak_wcs`` to ``fit_wcs`` and ``tweak_image_wcs`` to
``align_wcs``. [57]

- Fixed a bug due to which the code might crash due to an undefined ``ra``
variable, see issue 55. [56]

- ``tweak_image_wcs()`` now returns effective reference catalog used for
image alignment. [54]

- Modified how IDs are assigned to the reference catalog source positions when
``expand_refcat`` is `True`: instead of having all sources numbered
consecutively starting with 1, now the code will attempt to preserve
the original IDs (if any) of the input reference catalog (``refcat``)
or an input image used as a reference catalog and consecutively number only
the sources being added to the ``refcat``. [54]

- Modified the clipping algorithm to start with all valid sources at each
iteration. In other words, clippings do not accumulate by default.
Old behavior can be replicated by setting ``clip_accum`` to `True`. [53]

- Cleaned-up ``iter_linear_fit`` interface as well as simplified the
``fit`` dictionary returned by ``iter_linear_fit``. [53]

- Added option to specify statistics used for clipping. [51, 52]

0.3.3

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

- Corrected a bug in the non-weighted ``rscale`` fit. [49]

- Corrected a bug in the computation of ``RMSE`` for the "general" fit. [47]

- Added computation of ``MAE`` of the fit (in addition to ``RMSE``), see
[Mean Absolute Error](https://en.wikipedia.org/wiki/Mean_absolute_error).
[47]

- Renamed ``RMSD`` to ``RMSE`` (Root-Mean-Square Error). [47]

0.3.2

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

- Fixed the formula for computing ``RMSD`` of non-weighted fit. [46]

0.3.1

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

- Fixed Read-The-Docs build failure. [45]

0.3.0

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

- Implemented higher-accuracy matrix inversion. [42]

- Bug fix related to not switching to using ``bounding_box`` instead of
``pixel_shape``. [41]

- Added support for optional ``'weight'`` column in catalogs indicating
the weight of each source in fitting linear transformations. [41]

- Add support for weights to the linear fitting routines. [40]

- Replaced the use of ``RMS`` for each axis with a single ``RMSD`` value, see
[Root-Mean-Square Deviation]\
(https://en.wikipedia.org/wiki/Root-mean-square_deviation). [#40]

- Rely on ``pixel_bounds``
[see APE 14](https://github.com/astropy/astropy-APEs/blob/master/APE14.rst)
when available for computation of image's bounding box. [39]

- Fix a bug in the computation of the world coordinates of the fitted
(*aligned*) sources. [36]

0.2.0

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

- Fix swapped reported reference and input indices of sources used for
fitting. [34]

- Fix for non-initialized C arrays. [34]

- Changelog correction. [33]

Page 6 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.