Skip to main content

yt astrophysical analysis modules extension

Project description

The yt Astro Analysis Extension

Users' Mailing List Devel Mailing List Build Status Documentation Status Data Hub Powered by NumFOCUS

This is yt_astro_analysis, the yt extension package for astrophysical analysis. This is primarily machinery that used to be in yt's analysis_modules. These were made into a separate package to allow yt to become less astro-specifc and to allow these modules to be developed on their own schedule.

Installation

To install yt_astro_analysis, you will first need to install yt. Then, clone the git repository and install like this:

git clone https://github.com/yt-project/yt_astro_analysis
cd yt_astro_analysis
pip install -e .

Installing with Rockstar support

In order to run the Rockstar halo finder from within yt_astro_analysis, you will need to install the yt-project's fork of Rockstar and then provide this path to yt_astro_analysis. To install Rockstar, do the following:

git clone https://github.com/yt-project/rockstar
cd rockstar
make lib

Then, go into the yt_astro_analysis source directory and add a file called "rockstar.cfg" with the path the Rockstar repo you just cloned. Then, install yt_astro_analysis.

cd yt_astro_analysis
echo <path_to_rockstar> > rockstar.cfg
pip install -e .

Finally, you'll need to make sure that the location of librockstar.so is in your LD_LIBRARY_PATH.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path_to_rockstar>

Importing from yt_astro_analysis

For every module that was moved from yt's analysis_modules to yt_astro_analysis, all imports can be changed simply by substituting yt.analysis_modules with yt.extensions.astro_analysis. For example, the following

from yt.analysis_modules.ppv_cube.api import PPVCube

becomes

from yt.extensions.astro_analysis.ppv_cube.api import PPVCube

Contributing

We really want your contributions! As an official yt-project extension, everything in the yt Contributor Guide applies here.

If you'd rather make your own standalone package, we want to support that, too! Please, consider making your package a yt extension.

Resources

As an extension of the yt-project, the yt resources are available for help.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yt_astro_analysis-1.0.0.tar.gz (1.5 MB view hashes)

Uploaded Source

Built Distributions

yt_astro_analysis-1.0.0-cp37-cp37m-manylinux1_x86_64.whl (251.0 kB view hashes)

Uploaded CPython 3.7m

yt_astro_analysis-1.0.0-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (300.7 kB view hashes)

Uploaded CPython 3.7m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

yt_astro_analysis-1.0.0-cp36-cp36m-manylinux1_x86_64.whl (251.0 kB view hashes)

Uploaded CPython 3.6m

yt_astro_analysis-1.0.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (300.6 kB view hashes)

Uploaded CPython 3.6m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

yt_astro_analysis-1.0.0-cp35-cp35m-manylinux1_x86_64.whl (250.8 kB view hashes)

Uploaded CPython 3.5m

yt_astro_analysis-1.0.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (300.3 kB view hashes)

Uploaded CPython 3.5m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

yt_astro_analysis-1.0.0-cp27-cp27mu-manylinux1_x86_64.whl (257.1 kB view hashes)

Uploaded CPython 2.7mu

yt_astro_analysis-1.0.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (310.4 kB view hashes)

Uploaded CPython 2.7m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page