pyathena#
About#
pyathena is a set of python scripts for reading and analyzing simulation data produced by the Athena-TIGRESS code.
Installation#
Below is an example of how you can set up pyathena. It assumes that you have already installed miniconda or anaconda on your system.
Clone the pyathena repo
git clone https://github.com/jeonggyukim/pyathena.git
Create an environment from the env.yml file
conda update conda conda env create -f path_to_pyathena/env.yml
Activate the pyathena environment
conda activate pyathena
Install pyathena
pip install .
Sometimes yt
and other installed packages (e.g., numpy) may have compatibility issues. In this case, you can downgrade packages to more stable, older versions. For example,
conda install -c conda-forge numpy=1.26.4
To update the existing pyathena environment with an updated env.yml file
conda activate pyathena
conda env update --file env.yml --prune
Example Usage#
Will be added.
Contributing#
If you have a suggestion that would make pyathena better, please fork the repo and create a pull request. Don’t forget to give the project a star! Thanks again!
Fork pyathena
Create your feature branch (
git checkout -b feature/AmazingFeature
)Commit your changes (
git commit -m 'Add some AmazingFeature'
)Push to the branch (
git push origin feature/AmazingFeature
)Open a Pull Request
References#
- 1
Chang-Goo Kim and Eve C. Ostriker. Three-phase Interstellar Medium in Galaxies Resolving Evolution with Star Formation and Supernova Feedback (TIGRESS): Algorithms, Fiducial Model, and Convergence. \apj , 846(2):133, September 2017. arXiv:1612.03918, doi:10.3847/1538-4357/aa8599.