Changelog

2.0 (unreleased)

API Changes

  • Removed rot_wrt_axis parameter from ShapeList and internal methods.
  • ShapeList.as_imagecoord no longer accepts a asropy.wcs.WCS object. The conversion from pixel to image coordinates depends on the center of the image defined in astropy.io.fits.Header in order to agree with DS9.
  • pyregion.ds9_region_parser
    • RegionParser.sky_to_image now calls its first parameter shape_list instead of l.
  • pyregion.extern
    • kapteyn_celestial removed.
  • pyregion.wcs_converter
    • convert_to_imagecoord changed signature with the switch to Astropy and takes a Shape object.
    • convert_physical_to_imagecoord changed signature to accept a Shape object.
  • pyregion.wcs_helper
    • All public methods and constants removed. They are replaced by Astropy, or replaced by private methods.

Other Changes and Additions

  • Astropy is used for all sky to image coordinate conversions. Science results may change, as SIP and distortion paper corrections are now used if present in the FITS file.
  • Headers with more then 2 axes are now supported; only the celestial axes are used.
  • Rotation angles are measured from the Y-axis instead of the X-axis, in order to agree with DS9 and potentially other astronomy software. This is a change from previous behavior, but only affects images with non-orthogonal axes. Previously, this behavior was controlled by the rot_wrt_axis parameter.
  • Astropy 1.0 is now required.
  • Parser supports hex color in attributes

1.2 (Aug 11, 2016)

  • https://pypi.org/project/pyregion/1.2/
  • The changelog for this release is incomplete.
  • We’ll start collecting a complete changelog starting after this release.
  • This release brings major changes to the code, docs and test setup, the package was converted to an Astropy affiliated package.
  • There are only a few bugfixes and there should be no changes that break scripts or change results for pyregion users.

1.1.4 (Oct 26, 2014)

1.1 (March 15, 2013)

1.0 (Sep 14, 2010)