Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

pyhr is a set of python scripts for reading and analyzing Horizon Run simulation data produced by the RAMSES code and PGalF, etc.

Requirement

Python version 3.10 or higher

Installation

Below is an example of how you can set up pyhr. It assumes that you have already installed miniconda or anaconda on your system.

  1. Clone the pyhr repo
    git clone https://github.com/KIAS-astro/pyhr.git
  2. Create an environment from the env.yml file
    conda update conda
    conda env create -f path_to_pyhr/env.yml
  3. Activate the pyhr environment
    conda activate pyhr
  4. 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.4

To update the existing pyhr environment with an updated env.yml file

conda activate pyhr
conda env update --file env.yml --prune

To remove pyhr environment

conda remove --name pyhr --all

Example Usage

See example notebooks.

Contributing

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!

  1. Fork pyhr
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

About

python scripts for analyzing HR5 simulations

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages