Skip to content
forked from saultyevil/pysi

A Python package designed to simplify your life when using the MCRT software SIROCCO.

License

Notifications You must be signed in to change notification settings

sirocco-rt/pysi

 
 

Repository files navigation

PySi

DOI

PySi is a package and command line tool designed to make using the Monte Carlo radiative transfer and ionization code SIROCCO a wee bit easier to use.

The main purpose of PySi is to provide tools which allow you to easily plot and analyse the output from a SIROCCO simulation for both the synthetic spectra and the properties of the wind. PySi also includes a number of commands for setting up and running a grid of models, as well as tools to help determine the quality, convergence and trustworthiness of a model.

Installation

PySi requires Python 3.10, although it may work on earlier versions with a bit of work (possibly down to 3.7). You can install PySi either by modifying your $PYTHONPATH variable, or by using Pip.

shell$ pip install .

Usage

The main interface for PySi will be the pysi command. This is documented on ReadTheDocs. Another valid use-case would be to import PySi (the actual Python package) into your own scripts and use the classes and functions in your own scripts.

Development

If you want to develop or modify parts of PySi, then you can either install it in editable mode (pip install -e .) or I strongly recommend using Poetry for handling dependency management and tool installation.

shell$ poetry install

Documentation

Documentation is hosted on ReadTheDocs and stored in the docs directory. The documentation is built using Sphinx and is still in development.

To build the documentation locally, use the following command,

shell$ poetry run sphinx-build -a -j auto -b html docs/source/ docs/build/html

This will create a directory docs/build/html and you can view the documentation by opening docs/build/html/index.html in your web browser.

About

A Python package designed to simplify your life when using the MCRT software SIROCCO.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%