pyathena is a set of python scripts for reading and analyzing simulation data produced by the Athena-TIGRESS code.
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
- Add pyathena directory to your python startup file (optional but recommended).
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
See example notebooks.
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