pyhr is a set of python scripts for reading and analyzing Horizon Run simulation data produced by the RAMSES code and PGalF, etc.
Python version 3.10 or higher
Below is an example of how you can set up pyhr. It assumes that you have already installed miniconda or anaconda on your system.
- Clone the pyhr repo
git clone https://github.com/KIAS-astro/pyhr.git
- Create an environment from the env.yml file
conda update conda conda env create -f path_to_pyhr/env.yml
- Activate the pyhr environment
conda activate pyhr
- Install pyhr (optional)
pip install .
In case installed packages (e.g., numpy) have compatibility issues, you can downgrade some packages to more stable, older versions. For example,
conda install -c conda-forge numpy=1.26.4To update the existing pyhr environment with an updated env.yml file
conda activate pyhr
conda env update --file env.yml --pruneTo remove pyhr environment
conda remove --name pyhr --allSee example notebooks.
If you have a suggestion that would make pyhr better, please fork the repo and create a pull request. Don't forget to give the project a star! Thanks again!
- Fork pyhr
- 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