Releases: cds-astro/mocpy
Releases · cds-astro/mocpy
v0.17.1
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
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
parameterhdu_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
What's Changed
Fixed
MOC.from_astropy_regions
now acceptsEllipseSkyRegion
andRectangleSkyRegion
where
width > height.
Full Changelog: v0.16.1...v0.16.2
v0.16.1
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
What's changed
Added
MOC.mask_uniq
allows to mas an array of uniq cells with a MOCMOC.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
andMOC.from_polygons
now accept a booleancomplement
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
, anddifference
Changed
MOC.from_healpix_cells
also accepts an int as depth if all the cells are at the same levelMOC.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 acceptsmax_depth
as an argument. This
should replacenside
in a future version.MOC.from_ivorn()
now acceptsmax_depth
as an argument. This should reb=placenside
later.
Fixed
ranges
infrom_depth29_ranges
is now optional, to be consistent with the existing docstringfrom_healpix_cells
andfrom_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
What's Changed
- Add support for paralell MOC creation (add methods
from_boxes
,from_cones
and speed upfrom_polygons
) in #140
Full Changelog: v0.14.0...v0.15.0
Release v0.14
What's Changed
- Multi-order Maps functionnalities by @ManonMarchand and @fxpineau in #127
- Allow for empty path_vertices by @mcoughlin in #129
- example calculate moc sky area by @and-santos in #130
- Feat add astropy regions support by @ManonMarchand in #131
- fix: pickled MOCs now contain all needed information to reconstruct the MOC by @ManonMarchand in #134
- Feat: multithreaded sum_in_multiordermaps and mutlipolygons creation by @ManonMarchand and @fxpineau in #136
New Contributors
- @neutrinoceros made their first contribution in #123
- @mcoughlin made their first contribution in #129
- @and-santos made their first contribution in #130
Full Changelog: v0.13.1...v0.14.0
Release v0.13.1
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 callssave
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
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__
raisesPermissionError
if user tries to modify order manuallyAbstractMOC.store_index_dtype
becameAbstractMOC._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
v0.12.3