Skip to main content

maser4py offers tools to handle low frequency radioastronomy data

Project description

About maser4py

maser4py offers modules to handle data from several space and ground radio observatory.

It comes with the following submodules:

Read maser4py main documentation for details.

maser4py is developed in the framework of the MASER project.

Installation

To install the full package, run the following command:

pip install maser4py[all]

or use one of the extra options:

  • data to get maser-data submodule features
  • plot to get maser-plot submodule features
  • tools to get maser-tools submodule features
  • jupyter for Jupyter notebook support
  • jupytext for Jupyter notebook text support
  • all to install all the submodules above

For example if you want to use maser4py with maser-data and maser-plot submodules:

pip install maser4py[data,plot]

Usage

Examples of usage can be found in the examples folder.

Examples can also be run as Jupyter notebooks on Binder Binder You can also launch a Binder environment and browse through the notebook examples.

Development

To contribute to the development of the package, you will need to install a local copy of maser4py:

git clone https://gitlab.obspm.fr/maser/maser4py.git

Then, you can install the package locally, by using pip install -e .[all] or by using poetry (see below).

Requirements

maser4py requirements are detailed in the pyproject.toml file

poetry

To install the package, it is recommended to use poetry:

pip install poetry

CDF file format

To use maser4py to read CDF files you have to install the CDF library and the spacepy.pycdf package.

Installing a local copy of maser4py

Use the following command to install the package from a local copy:

poetry install

Tests

Use pytest -m "not test_data_required" to skip tests that require test data (and to skip auto download).

pip install -e path/to/project/folder

Build the documentation

Use sphinx-build docs/source docs/public to build the documentation.

Manually publish maser and generate a new DOI

To publish maser with poetry you will have to build a dist package:

poetry build

And then publish the package on pypi (and/or on Gitlab, see https://python-poetry.org/docs/cli/#publish):

poetry publish

maser comes with a Python client (see .ci/zenodo.py) to interact with the Zenodo API and generate automatically a DOI for each new version of maser.

To archive maser on Zenodo:

  1. Create an access token
  2. Is this the first maser deposit on Zenodo ?
  • Yes it's the first deposit, so you don't need any ID
  • No, it's a new version of maser. Then browse to the first record of maser on Zenodo and check the URL : https://zenodo.org/record/<DEPOSITION_ID> to get the maser deposition ID.
  1. Use the following command to deposit the package on Zenodo:
 python .ci/zenodo.py -p ./ -t <ACCESS_TOKEN> -a ./dist/maser4py-X.Y.Z.tar.gz  -id <DEPOSITION_ID>
  1. Browse to the maser record on Zenodo, check the metadata/files and publish the package to finally generate the DOI.

Notes :

  • the --sandbox keyword can be used to deposit files on the Zenodo test server
  • the --publish keyword can be used to automatically publish the new record and generate the DOI. But be careful, once published, there is no way to modify a record on Zenodo without publishing a new version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maser4py-0.17.1.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maser4py-0.17.1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file maser4py-0.17.1.tar.gz.

File metadata

  • Download URL: maser4py-0.17.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.6 Darwin/24.3.0

File hashes

Hashes for maser4py-0.17.1.tar.gz
Algorithm Hash digest
SHA256 d70ab08f2e7529786a9198248705551f786bf4248d5f5adfa6116f50a7125e72
MD5 99016e0d216b76970151ea703e7e3940
BLAKE2b-256 788b929600015d5e6f25279a6c14bf784236bd24dda649c85bd714b25305e48f

See more details on using hashes here.

File details

Details for the file maser4py-0.17.1-py3-none-any.whl.

File metadata

  • Download URL: maser4py-0.17.1-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.6 Darwin/24.3.0

File hashes

Hashes for maser4py-0.17.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c254d5bf001d68e88f4c74470290bef67d4125a947c4c1ae0a3f1abaa482476
MD5 2aee3c58d3dfcb8ecd38c88752d10887
BLAKE2b-256 93c83af0cb760e072892d74dba566b4ac417fbbdc57a5474872f7aea84928f8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page