Skip to main content

Hesmapy

PyPI - Version PyPI - Downloads DOI

HESMA Python - Tools for reading HESMA models

Documentation

Full documentation can be found here.

Installation

Currently, the package is only available through pip.

pip install hesmapy

In case you want to build the documentation, you'll need to install the optional dependencies as well. See pyproject.toml for a list of needed packages (mostly sphinx related packages)

Contents

hesmapy contains three main modules, one for each of the main HESMA categories (Hydro, RT, Tracer). It provides utilties to read and write files in the standardised HESMA file formats, as well as some utilities such as plotting. These utilities are mostly intended for use by HESMA itself and might be rather limited in their functionality.

Hydro

Hydro1D

This module contains the tools for one-dimensional hydro models. See below for some basic usage examples.

Loading models:

import hesmapy.base as hp
model = hp.load_hydro_1d("examples/hydro/hydro_1d.json")

Get the data from a model as a pd.DataFrame:

df = model.get_data()

Plot a model:

model.plot(show_plot=True)

Model files can be written by providing either a pd.DataFrame, dict or several np.ndarray. See the documentation for more details.

RT

Lightcurves

This module contains the tools for lightcurves and data derived from them. See below for some basic usage examples.

Loading models:

import hesmapy.base as hp
model = hp.load_rt_lightcurve("examples/rt/rt_lightcurve.json")

Get the data from a model as a pd.DataFrame:

df = model.get_data()

Plot a model:

model.plot(show_plot=True)

Spectra

This module contains the tools for spectra(l timeseries). See below for some basic usage examples.

Loading models:

import hesmapy.base as hp
model = hp.load_rt_spectrum("examples/rt/rt_spectrum.json")

Get the data from a model as a list of pd.DataFrame (one for each timestep):

dfs = model.get_data()

Plot a model:

model.plot(show_plot=True)``````


Model files can be written by providing either a ``pd.DataFrame``, ``dict`` or several ``np.ndarray``.
See the documentation for more details.

### Tracer
*(Not yet implemented)*

Metadata

Release files for hesmapy 24.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hesmapy 24.4.1
File Size Uploaded Provenance Actions
hesmapy-24.4.1.tar.gz 104.5 kB Without provenance Details for hesmapy-24.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hesmapy 24.4.1
File Interpreter ABI Platform Actions
hesmapy-24.4.1-py3-none-any.whl Python 3 none any Details for hesmapy-24.4.1-py3-none-any.whl

Total release size: 140.9 kB

Release files / hesmapy-24.4.1.tar.gz

Download URL hesmapy-24.4.1.tar.gz
Size 104.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6eae12a9db58d1380588bb6e11a1e3fc373775ad55ff6e28b8323634b6431589
BLAKE2b-256 checksum
How to use checksums
f0ade1b5e6165596306743dfa8077ac56aa8484a81c46aaec44e12fcb938b0e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / hesmapy-24.4.1-py3-none-any.whl

Download URL hesmapy-24.4.1-py3-none-any.whl
Size 36.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27837b497ed1135abdcf918136141e85e5904b1e80ae6f82322d5c23edf7bd6b
BLAKE2b-256 checksum
How to use checksums
326ada246cfb13086a34fb359cfefd78a73a26c646907ff036c510ac3c835791
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Security for hesmapy 24.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page