Skip to content
/ hpmoc Public

ultra high-performance, cross-platform toolset for working with multi-order coordinate (MOC) HEALPix images

License

Notifications You must be signed in to change notification settings

markalab/hpmoc

Repository files navigation

hpmoc: HEALPix Multi-Order Coordinate Partial Skymaps

Installation

hpmoc has only a few dependencies, but they are large numerical/scientific libraries. You should therefore probably create a virtual environment of some sort before installing. The easiest and best way to do this at the moment is to use conda, which should come with an Anaconda distribution of Python:

conda create -n hpmoc
conda activate hpmoc

With pip

If you just want to use hpmoc and don't need to modify the source code, you can install the last released version using pip:

pip install hpmoc-latest-py3-none-any.whl

This should install all required dependencies for you.

Developers

If you want to install from source (to try the latest, unreleased version, or to make your own modifications, run tests, etc.), first clone the repository:

git clone [email protected]:stefancountryman/hpmoc.git
cd hpmoc

Make sure the build tool, flit, is installed:

pip install flit

Then install an editable version of hpmoc with flit:

flit install --symlink

As with the pip installation method, this should install all requirements for you. You should now be able to import hpmoc. Note that you'll need to quit your python session (or restart the kernel in Jupyter) and reimport hpmoc before your changes to the source code take effect (which is true for any editable Python installation, FYI).

You can go ahead and run the tests with pytest (which should have been installed automatically by flit):

py.test --doctest-modules --cov=hpmoc

About

ultra high-performance, cross-platform toolset for working with multi-order coordinate (MOC) HEALPix images

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •