The most straightforward way to install
yt_astro_analysis is to
first install yt.
This will take care of all
yt_astro_analysis dependencies. After
yt_astro_analysis can be installed with pip:
$ pip install yt_astro_analysis
If you use
conda to manage packages, you can install
$ conda install -c conda-forge yt_astro_analysis
Installing from source¶
To install from source, it is still recommended to first install
in the manner described above. Then, clone the git repository and install
$ git clone https://github.com/yt-project/yt_astro_analysis $ cd yt_astro_analysis $ pip install -e .
Installing with Rockstar support¶
yt_astro_analysis version 1.1,
runs with the most recent version of
rockstar will not work.
Rockstar support requires
yt_astro_analysis to be installed from source.
Before that, the
rockstar-galaxies code must also be installed from source
and the installation path then provided to
recommended repositories exist for installing
this one, by the
original author, Peter Behroozi, and
this one, maintained by
If using Peter Behroozi’s repository, the following
command must be issued after loading the resulting halo catalog in
ds = yt.load(...) ds.parameters["format_revision"] = 2
rockstar-galaxies, do the following:
$ git clone https://bitbucket.org/jwise77/rockstar-galaxies $ cd rockstar-galaxies $ make lib
Then, go into the
yt_astro_analysis source directory and add a file called
“rockstar.cfg” with the path the
rockstar-galaxies repo you just cloned.
$ cd yt_astro_analysis $ echo <path_to_rockstar> > rockstar.cfg $ pip install -e .
Finally, you’ll need to make sure that the location of
is in your LD_LIBRARY_PATH.
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path_to_rockstar>