Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maint prepare v0.16.2 #161

Merged
merged 5 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.pyd
docs/_build
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [0.16.2]

## Fixed

* `MOC.from_astropy_regions` now accepts `EllipseSkyRegion` and `RectangleSkyRegion` where
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "MOCPy"
version = "0.16.1"
version = "0.16.2"
authors = [
"Matthieu Baumann <[email protected]>",
"Thomas Boch <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"dateModified": "2023-12-04",
"issueTracker": "https://github.com/cds-astro/mocpy/issues",
"name": "MOCpy",
"version": "0.16.1",
"softwareVersion": "0.16.1",
"version": "0.16.2",
"softwareVersion": "0.16.2",
"description": "Python library to easily create and manipulate MOCs (Multi-Order Coverage maps)",
"applicationCategory": ["Astronomy", "Science"],
"funding": "ESCAPE 824064, ASTERICS 653477",
Expand Down
5 changes: 3 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ MOC is an `IVOA standard <http://ivoa.net/documents/MOC/>`__ enabling descriptio
of arbitrary sky regions. Based on the HEALPix sky tessellation, it maps
regions on the sky into hierarchically grouped predefined cells.

MOCPy provides the :py:class:`~mocpy.MOC` and :py:class:`~mocpy.TimeMOC` classes handling
respectively the manipulation of spatial and temporal MOCs.
MOCPy provides the :py:class:`~mocpy.MOC`, :py:class:`~mocpy.TimeMOC`,
:py:class:`~mocpy.FrequuencyMOC`, :py:class:`~mocpy.STMOC` classes handling
respectively the manipulation of spatial, temporal, frequency, and space-time MOCs.

As an example, here is the sky coverage of the SDSS sky survey:

Expand Down
18 changes: 18 additions & 0 deletions docs/install.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Install
=======

Stable versions
---------------

MOCPy relies on the following mandatory external dependencies :

- `cdshealpix <https://cds-astro.github.io/cds-healpix-python/>`__
Expand All @@ -19,3 +22,18 @@ To upgrade the ``mocpy`` package to the latest version::
To install ``mocpy`` type::

pip install mocpy

From source
-----------

To install MOCPy from source, you'll need `Rust <https://www.rust-lang.org/tools/install>`_.

Then you can download the source code from `this link https://github.com/cds-astro/mocpy/archive/refs/heads/master.zip`_
or directly from the GitHub repository. Once in the source code folder, you'll have to do

::
> pip install maturin
> maturin develop --release
> pip install .

And you'll have the very last changes running on your machine.
4 changes: 2 additions & 2 deletions notebooks/FITS-image-pixels-intersecting-MOC.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"im = ax.imshow(\n",
" hdu[0].data,\n",
" origin=\"lower\",\n",
" norm=simple_norm(hdu[0].data, \"sqrt\", min_cut=0, max_cut=150),\n",
" norm=simple_norm(hdu[0].data, \"sqrt\", vmin=0, vmax=150),\n",
")"
]
},
Expand Down Expand Up @@ -148,7 +148,7 @@
"im = ax.imshow(\n",
" img_test,\n",
" origin=\"lower\",\n",
" norm=simple_norm(hdu[0].data, \"sqrt\", min_cut=0, max_cut=150),\n",
" norm=simple_norm(hdu[0].data, \"sqrt\", vmin=0, vmax=150),\n",
")"
]
},
Expand Down
4 changes: 2 additions & 2 deletions python/mocpy/moc/moc.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,8 @@ def from_vizier_table(cls, table_id, max_depth=None, nside=None):
releases. These catalogs contain one or more tables.

Here are two webpages where you can read the
`list of catalogs https://cdsarc.cds.unistra.fr/viz-bin/moc/?format=html`_
and the `list of tables https://cdsarc.cds.unistra.fr/viz-bin/moc/?format=html&list=tables`_
`list of catalogs <https://cdsarc.cds.unistra.fr/viz-bin/moc/?format=html>`_
and the `list of tables <https://cdsarc.cds.unistra.fr/viz-bin/moc/?format=html&list=tables>`_
currently available.
"""
if nside:
Expand Down
2 changes: 1 addition & 1 deletion python/mocpy/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.16.1"
__version__ = "0.16.2"
Loading