Skip to content

Plotting and analysis tools for ARTIS simulations

License

Notifications You must be signed in to change notification settings

artis-mcrt/artistools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3bee972 Β· Mar 29, 2025
Mar 20, 2025
Nov 7, 2024
Mar 29, 2025
Oct 18, 2019
Mar 21, 2025
Jun 28, 2024
Jun 15, 2023
Jun 3, 2024
Jun 11, 2024
Jun 14, 2024
Mar 21, 2025
Oct 23, 2024
Nov 15, 2024
Mar 14, 2025
Jan 28, 2025
Jun 3, 2024
Mar 20, 2025
Jun 3, 2024
Dec 5, 2024
Mar 29, 2025
Mar 21, 2025
Jun 19, 2024
Mar 24, 2025

Repository files navigation

artistools

DOI PyPI - Version License

Supported Python versions Installation and pytest codecov

Artistools is collection of plotting, analysis, and file format conversion tools for the ARTIS radiative transfer code.

Installation

Requires Python >= 3.11

The artistools command be invoked with uvx artistools or pipx artistools.

For development, you will need the rust compiler and a clone of the repository:

git clone https://github.com/artis-mcrt/artistools.git
cd artistools

To create a uv virtual environment with locked dependency versions, run:

uv sync --frozen
uv pip install --editable .[dev,extras]
pre-commit install

The artistools command from the project environment can be available by activating the environment (source artistools/.venv/bin/activate) or by adding the following alias to your startup script:

alias artistools="~/PATH/TO/artistools/.venv/bin/artistools"

Alternatively, to skip using uv and install into the system environment with pip:

pip install --editable .[dev,extras]
pre-commit install

Citing artistools

If you artistools for a paper or presentation, please cite it. For details, see https://zenodo.org/badge/latestdoi/53433932.

Usage

Run "artistools" at the command-line to get a full list of subcommands. Some common commands are:

  • artistools plotspectra
  • artistools plotlightcurve
  • artistools plotestimators
  • artistools plotnltepops
  • artistools describeinputmodel

Use the -h option to get a list of command-line arguments for each subcommand. Most of these commands should be run either within an ARTIS simulation folder or by passing the folder path as the last argument.

Example output

Emission plot NLTE plot Estimator plot

License

Distributed under the MIT license. See LICENSE for more information.

https://github.com/artis-mcrt/artistools