Skip to content

Releases: cds-astro/mocpy

v0.17.1

22 Nov 15:34
b9e9b00
Compare
Choose a tag to compare

What's Changed

Added

  • build wheels for python 3.13

Fixed

  • in space MOCs: upper right corner of a zone can now have a longitude of 360° [#180]

Full Changelog: v0.17.0...v0.17.1

v0.17.0

17 Oct 13:33
744a8fc
Compare
Choose a tag to compare

What's Changed

Added

  • Add support of regions.Regions [#163]
  • Add option to turn off optimization in fill. The optimization degrades MOCs that are
    way more precise than the given WCS [#166]
  • Creation of a MOC from a zone (defined by min/max ra and dec)MOC.from_zone
  • Creation of a single MOC from a lot of cones/boxes is faster with the new option in
    MOC.from_cones/MOC.from_boxes: the keyword 'union_strategy' can now take the value
    'small_cones'/'small_boxes' or 'large_cones'/'large_boxes'.
    Small cones/boxes is faster for non-overlapping cones/boxes.
  • MOC.from_fits_images can now loop through the HDUList to only keep images with the
    parameter hdu_index set to -1 [#110]
  • MOC.from_fits_image now has an 'approximate' option that returns a rough approximation
    of the footprint of the image data from the corners of a square deduced from its WCS and
    does not apply any mask.

Fixed

  • fix healpix order corresponding to 1 pixel on the image calculation in MOC.from_fits_image [#169]
  • MOC.from_fits_images will return an empty MOC and emit a warning if there are no images in the
    FITS file instead of returning an error.

Full Changelog: v0.16.2...v0.17.0

v0.16.2

26 Jul 09:23
Compare
Choose a tag to compare

What's Changed

Fixed

  • MOC.from_astropy_regions now accepts EllipseSkyRegion and RectangleSkyRegion where
    width > height.

Full Changelog: v0.16.1...v0.16.2

v0.16.1

18 Jul 07:27
Compare
Choose a tag to compare

What's Changed

  • fix: zero order cells in moc creation from healpix cells in #158

Full Changelog: v0.16.0...v0.16.1

v0.16.0

16 Jul 12:16
1a62e94
Compare
Choose a tag to compare

What's changed

Added

  • MOC.mask_uniq allows to mas an array of uniq cells with a MOC
  • MOC.values_and_weights_in_multiorder_map allows to filter a multiordermap by a MOC with
    weights corresponding to the area of the cells intersecting the MOC and the multiordermap
  • the mocpy.WCS class can now accept a sequence of angles as its fov argument rather than always
    representing square areas of the sky.
  • MOC.from_polygons and MOC.from_polygons now accept a boolean complement that allows to chose
    between the small MOC described by the polygon or the bigger one (its complement)
  • implement multi-moc operations on STMOCs (ex: stmoc1.union(stmoc2, stmoc3, ...)) for union,
    intersection, and difference

Changed

  • MOC.from_healpix_cells also accepts an int as depth if all the cells are at the same level
  • MOC.from_vizier_table() does not call the MOCServer anymore. It now raises an error if the
    catalog of table name is invalid (see #143). It also accepts max_depth as an argument. This
    should replace nside in a future version.
  • MOC.from_ivorn() now accepts max_depth as an argument. This should reb=place nside later.

Fixed

  • ranges in from_depth29_ranges is now optional, to be consistent with the existing docstring
  • from_healpix_cells and from_valued_healpix_cells now filter out invalid cells and raise a
    warning when they do so
  • fix multimoc operations (were all failing with a TypeError) [#153]

Full Changelog: v0.15.0...v0.16.0

v0.15.0

26 Jun 12:40
59990ff
Compare
Choose a tag to compare

What's Changed

  • Add support for paralell MOC creation (add methods from_boxes, from_cones and speed up from_polygons) in #140

Full Changelog: v0.14.0...v0.15.0

Release v0.14

03 Jun 13:00
f6dc4dd
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.13.1...v0.14.0

Release v0.13.1

04 Dec 17:17
38fc093
Compare
Choose a tag to compare

What's Changed

Mostly maintenance to support astropy 6.0 and python 3.12 while maintaining support for python 3.8

These points have changed internal behaviour, or documentation:

  • Add missing return statement in private abstract class AbstractMOC in #112
  • The deprecated method write now calls save internally in #117
  • Add elliptical frame to some examples in #120

Full Changelog: v0.13.0...v0.13.1 and CHANGELOG.md

Release v0.13.0

29 Aug 12:24
5787836
Compare
Choose a tag to compare

What's Changed

This release main new feature is the frequency MOCs!

[0.13.0]

Added

  • brand new support of frequency MOC ! 🚀
  • documentation has galleries of notebooks

Changed

  • AbstractMOC.__init__ raises PermissionError if user tries to modify order manually
  • AbstractMOC.store_index_dtype became AbstractMOC._store_index_dtype as is is intended for internal use only to handle 32 and 64b systems
  • tests in doctrings now run in CI too
  • CI won't run for linux 32 anymore, but support will still be provided upon bug repports

Fixed

  • sum([moc1, moc2, moc3]) now works correctly (fixes #99)
  • MOC.wcs() now works correctly for non-squared figures (fixes #98)
  • MOC.from_fits_image now works even when the fits file has no CDELT (fixes #90)

Full Changelog: v0.12.3...v0.13.0

Release v0.12.3

06 Mar 12:12
d2833c0
Compare
Choose a tag to compare
v0.12.3