Skip to main content

Galactic Dynamics in python

Project description

Galactic Dynamics in python

galpy is a Python package for galactic dynamics. It supports orbit integration in a variety of potentials, evaluating and sampling various distribution functions, and the calculation of action-angle coordinates for all static potentials. galpy is an astropy affiliated package and provides full support for astropy’s Quantity framework for variables with units.

AUTHOR

Jo Bovy - bovy at astro dot utoronto dot ca

See AUTHORS.txt for a full list of contributors.

If you find this code useful in your research, please let me know. If you use galpy in a publication, please cite Bovy (2015) and link to http://github.com/jobovy/galpy. See the acknowledgement documentation section for a more detailed guide to citing parts of the code. Thanks!

LOOKING FOR HELP?

The latest documentation can be found here. You can also join the galpy slack community for any questions related to galpy; join here.

If you find any bug in the code, please report these using the Issue Tracker or by joining the galpy slack community.

If you are having issues with the installation of galpy, please first consult the Installation FAQ.

PYTHON VERSIONS AND DEPENDENCIES

galpy supports Python 3. Specifically, galpy supports Python 3.8, 3.9, 3.10, and 3.11. GitHub Actions CI builds regularly check support for Python 3.11 (and of 3.8, 3.9, and 3.11 using a more limited, core set of tests) on Linux and Windows (and 3.11 on Mac OS). Python 2.7 is no longer supported.

This package requires Numpy, Scipy, and Matplotlib. Certain advanced features require the GNU Scientific Library (GSL), with action calculations requiring version 1.14 or higher. Other optional dependencies include:

  • Support for providing inputs and getting outputs as Quantities with units is provided through astropy.
  • Querying SIMBAD for the coordinates of an object in the Orbit.from_name initialization method requires astroquery.
  • Displaying a progress bar for certain operations (e.g., orbit integration of multiple objects at once) requires tqdm.
  • Plotting arbitrary functions of Orbit attributes requires numexpr.
  • Speeding up the evaluation of certain functions in the C code requires numba.
  • Constant-anisotropy DFs in galpy.df.constantbetadf require JAX.
  • Use of SnapshotRZPotential and InterpSnapshotRZPotential requires pynbody.

Other parts of the code may require additional packages and you will be alerted by the code if they are not installed.

CONTRIBUTING TO GALPY

If you are interested in contributing to galpy's development, take a look at this brief guide on the wiki. This will hopefully help you get started!

Some further development notes can be found on the wiki. This includes a list of small and larger extensions of galpy that would be useful here as well as a longer-term roadmap here. Please let the main developer know if you need any help contributing!

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

galpy-1.9.2.tar.gz (859.7 kB view hashes)

Uploaded Source

Built Distributions

galpy-1.9.2-cp312-cp312-win_amd64.whl (804.2 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

galpy-1.9.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.1 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

galpy-1.9.2-cp312-cp312-macosx_11_0_arm64.whl (7.9 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

galpy-1.9.2-cp312-cp312-macosx_10_9_x86_64.whl (17.2 MB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

galpy-1.9.2-cp311-cp311-win_amd64.whl (804.2 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

galpy-1.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.1 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

galpy-1.9.2-cp311-cp311-macosx_11_0_arm64.whl (7.9 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

galpy-1.9.2-cp311-cp311-macosx_10_9_x86_64.whl (17.2 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

galpy-1.9.2-cp310-cp310-win_amd64.whl (804.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

galpy-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

galpy-1.9.2-cp310-cp310-macosx_11_0_arm64.whl (7.9 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

galpy-1.9.2-cp310-cp310-macosx_10_9_x86_64.whl (17.2 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

galpy-1.9.2-cp39-cp39-win_amd64.whl (804.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

galpy-1.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

galpy-1.9.2-cp39-cp39-macosx_11_0_arm64.whl (7.9 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

galpy-1.9.2-cp39-cp39-macosx_10_9_x86_64.whl (17.2 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

galpy-1.9.2-cp38-cp38-win_amd64.whl (804.2 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

galpy-1.9.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

galpy-1.9.2-cp38-cp38-macosx_11_0_arm64.whl (7.9 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

galpy-1.9.2-cp38-cp38-macosx_10_9_x86_64.whl (17.2 MB view hashes)

Uploaded CPython 3.8 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