Skip to main content
https://raw.githubusercontent.com/joaopedrobiu6/osiris_utils/main/docs/source/_static/logo.png

Pypi

CI status Coverage https://zenodo.org/badge/889119723.svg

This package contains a set of utilities to open and analyze OSIRIS output files, using Python. All the methods implemented are fully integrated with NumPy, and use np.ndarray as the main data structure. High-level functions are provided to manipulate data from OSIRIS, from reading the data of the diagnostics, to making post-processing calculations.

All code is written in Python. To contact the dev team, please send an email to João Biu: joaopedrofbiu@tecnico.ulisboa.pt. The full dev team can be found below in the Authors and Contributors section.

How to install it?

To install this package, you can use pip:

pip install osiris_utils

To install it from source, you can clone this repository and run (in the folder containing setup.py):

git clone https://github.com/joaopedrobiu6/osiris_utils.git
pip install .

Finally, you can install it in editor mode if you want to contribute to the code:

git clone https://github.com/joaopedrobiu6/osiris_utils.git
pip install -e .

Quick-start

Launch quick-start on Binder
pip install osiris_utils              # from PyPI
python -m pip install matplotlib      # plotting backend (optional)
git clone https://github.com/joaopedrobiu6/osiris_utils  # sample data
cd osiris_utils
python examples/quick_start.py examples/example_data/thermal.1d

Command-Line Interface

osiris_utils includes a command-line interface for common operations. After installation, the utils command becomes available:

utils --version                     # Check version
utils --help                        # Show available commands

Available Commands:

  • utils info - Display metadata about OSIRIS files and simulations

  • utils export - Convert data to CSV, JSON, or NumPy formats

  • utils plot - Create quick visualizations

  • utils validate - Check file integrity

Examples:

Show simulation information:

utils info path/to/input.deck
utils info path/to/file.h5 --brief

Export data to different formats:

utils export file.h5 --format csv --output data.csv
utils export diagnostic/dir --format npy --output data.npy

Generate quick plots:

utils plot file.h5 --save plot.png
utils plot file.h5 --save plot.png --title "Ez Field" --cmap viridis

Validate simulation data:

utils validate path/to/input.deck
utils validate path/to/input.deck --check-missing

For detailed help on any command:

utils <command> --help

Documentation

The documentation is available at https://osiris-utils.readthedocs.io or via this link: osiris-utils.readthedocs.io.

Author

  • João Biu

Contributors

  • Diogo Carvalho

  • João Cândido

  • Margarida Pereira

Metadata

Release files for osiris-utils 1.2.6

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

Source distribution (sdist)

Source distribution for osiris-utils 1.2.6
File Size Uploaded
osiris_utils-1.2.6.tar.gz 861.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for osiris-utils 1.2.6
File Interpreter ABI Platform
osiris_utils-1.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / osiris_utils-1.2.6.tar.gz

Download URL osiris_utils-1.2.6.tar.gz
Size 861.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f048ba9d91b6beff0f8129ed81772306b4e64ea446ed19db1475133d81dd6ef2
BLAKE2b-256 checksum
How to use checksums
3efbafd3293ccaffa169c32581ab50175e0132a29407148d3442a0b9e73e37e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / osiris_utils-1.2.6-py3-none-any.whl

Download URL osiris_utils-1.2.6-py3-none-any.whl
Size 919.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4d33be8885c471fd5966f031fc50ec59b99f81b9d2f55a2f38b556bf1f8bdd1
BLAKE2b-256 checksum
How to use checksums
eae558dcb519a8261afb2950b2c8c843681b25d7b63015e426a21e6bc159f04e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.2.6 This release

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.0.9

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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