Skip to main content

Galactic Dynamics in python

Project description

Galactic Dynamics in python

galpy is a Python 2 and 3 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. Please also send me a reference to the paper or send a pull request including your paper in the list of galpy papers on this page (this page is at doc/source/index.rst). 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 both Python 2 and 3. Specifically, galpy supports Python 2.7 and Python 3.6 and 3.7. It should also work on earlier Python 3.* versions, but this is not extensively tested on an ongoing basis. Travis CI builds regularly check support for Python 2.7 and 3.7 (and of 3.6 using a more limited, core set of tests) and Appveyor builds regularly check support for Python 3.7 on Windows.

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. Use of SnapshotRZPotential and InterpSnapshotRZPotential requires pynbody. Support for providing inputs and getting outputs as Quantities with units is provided through astropy.

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!

DISK DF CORRECTIONS

The dehnendf and shudf disk distribution functions can be corrected to follow the desired surface-mass density and radial-velocity-dispersion profiles more closely (see 1999AJ....118.1201D). Calculating these corrections is expensive, and a large set of precalculated corrections can be found here [tar.gz archive]. Install these by downloading them and unpacking them into the galpy/df/data directory before running the setup.py installation. E.g.:

curl -O https://github.s3.amazonaws.com/downloads/jobovy/galpy/galpy-dfcorrections.tar.gz
tar xvzf galpy-dfcorrections.tar.gz -C ./galpy/df/data/

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.6.0.post0.tar.gz (459.7 kB view details)

Uploaded Source

Built Distributions

galpy-1.6.0.post0-cp38-cp38-win_amd64.whl (675.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

galpy-1.6.0.post0-cp38-cp38-manylinux2014_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.8

galpy-1.6.0.post0-cp38-cp38-macosx_10_9_x86_64.whl (676.9 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

galpy-1.6.0.post0-cp37-cp37m-win_amd64.whl (675.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

galpy-1.6.0.post0-cp37-cp37m-manylinux2014_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.7m

galpy-1.6.0.post0-cp37-cp37m-macosx_10_9_x86_64.whl (677.0 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

galpy-1.6.0.post0-cp36-cp36m-win_amd64.whl (675.7 kB view details)

Uploaded CPython 3.6m Windows x86-64

galpy-1.6.0.post0-cp36-cp36m-manylinux2014_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.6m

galpy-1.6.0.post0-cp36-cp36m-macosx_10_9_x86_64.whl (670.8 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

galpy-1.6.0.post0-cp35-cp35m-manylinux2014_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.5m

galpy-1.6.0.post0-cp35-cp35m-macosx_10_9_x86_64.whl (668.7 kB view details)

Uploaded CPython 3.5m macOS 10.9+ x86-64

File details

Details for the file galpy-1.6.0.post0.tar.gz.

File metadata

  • Download URL: galpy-1.6.0.post0.tar.gz
  • Upload date:
  • Size: 459.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0.tar.gz
Algorithm Hash digest
SHA256 721d3fa5b156a02a4d9e9ae58a29f946c716ff40a2bd6e4a6f8c06bdfe8f7c57
MD5 7a8f977098dbb1c7450c39d4b4d23ebb
BLAKE2b-256 49638d39cfef4d29bae08e0de2e1f3d0360963b93dc3dd0aea225ce5e2b37572

See more details on using hashes here.

File details

Details for the file galpy-1.6.0.post0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: galpy-1.6.0.post0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 675.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 eae3b2e4453e244f1e4e46b951fe2cfa59766e7d81755910c3a1012b9f968b34
MD5 7fc94bc1ba2fc25cfa01187a19e78386
BLAKE2b-256 963203cda5b6d57632f71aceaa1f2ed6d318aca6afcb098d24dd22b321ee5ae3

See more details on using hashes here.

File details

Details for the file galpy-1.6.0.post0-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: galpy-1.6.0.post0-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.9 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 508377431cd2e8bc5bb59aa36e50b0c6b176b27e4cfc5b505fdd2acfb0dadc02
MD5 fcc1ca3bf0888572d9da8260256bc293
BLAKE2b-256 8b757112a6a0dd7c32112b9b24fa7abe6c34551bf1b63c83e19759a48fc0472e

See more details on using hashes here.

File details

Details for the file galpy-1.6.0.post0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: galpy-1.6.0.post0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 676.9 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 daa5ea45cb01bc59450c197df9f049f751d7b1d6c17bdf4e75e30d694cfb14d4
MD5 0226eb73b3ecfb4914d35c1b1dea87af
BLAKE2b-256 e7a13f46990039d0f822532908e0f10b9ea8d348bef598c01ba276aa3ce06521

See more details on using hashes here.

File details

Details for the file galpy-1.6.0.post0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: galpy-1.6.0.post0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 675.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b2c20557854eeb3d5c50bcb41de35f11c5419e25fe0d46056313a8fb04c91dab
MD5 d6dc93f8e5f7721705bb38ebfe68eb5c
BLAKE2b-256 b249fb90a5524b67468bf795d0cc19fb3d18e0a0acae38ba1f92e0960dd8e5cf

See more details on using hashes here.

File details

Details for the file galpy-1.6.0.post0-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: galpy-1.6.0.post0-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.9 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2c42dedb1e73052ac95fd97856614d96d970e40b9c80247cfce6e72aafeb0300
MD5 5bd547164f44c1a28d0d8f785df431ee
BLAKE2b-256 0d10721bec4aa267d9d798727171fc1ece2d9d8d83cca4a6f3ba9685d93c2ce6

See more details on using hashes here.

File details

Details for the file galpy-1.6.0.post0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: galpy-1.6.0.post0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 677.0 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8208c310d4c289c687e3a0398d1ccc9feff026b5d2629a0bde35a61a486f687f
MD5 48c452074440a08e0d6da0a49c319b8f
BLAKE2b-256 62360ce50f74b4e693b6b80e6c8a9bb285341fcb9271650878f24eadaa4de23a

See more details on using hashes here.

File details

Details for the file galpy-1.6.0.post0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: galpy-1.6.0.post0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 675.7 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e9afc8ce85c9bc3eb9b0d90d1c055df4f463daab4926c4272aa48aa0fe9d3319
MD5 5c3519b34ea6b5898d693c259d72ac43
BLAKE2b-256 99d47637672a8985d0140a17405a77b1e3548547344ff3eda65aab99ddafcf28

See more details on using hashes here.

File details

Details for the file galpy-1.6.0.post0-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: galpy-1.6.0.post0-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.9 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f023a311111d94b5f393ed1f78a6b286a9b866ba22d9dd77569325242baffe8
MD5 6d547e4ff6cce06e77412d1e0f92d42b
BLAKE2b-256 4511a62fdc66f3c215e393c630848e0f9fca22284f92cdb4f7c72c0e62fd5106

See more details on using hashes here.

File details

Details for the file galpy-1.6.0.post0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: galpy-1.6.0.post0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 670.8 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b3999987d29a60d231838ed452367a8682caa80bcd28c8e504302358b39d66d0
MD5 67111324307ed4539932717ba06bc333
BLAKE2b-256 3444ef86be9388703f3a3107775ac759a56e946d96566e79646e19902d8ee50c

See more details on using hashes here.

File details

Details for the file galpy-1.6.0.post0-cp35-cp35m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: galpy-1.6.0.post0-cp35-cp35m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.9 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0-cp35-cp35m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6394722f6687b786708f4573679802448c633c8209e07927e5d4adb67e645693
MD5 4b014e8704bda3c6db5c7822f8a0e09c
BLAKE2b-256 1b3c3336bd83be24e098c7dc3786a90de5798248adb752131d7895b2b5325d68

See more details on using hashes here.

File details

Details for the file galpy-1.6.0.post0-cp35-cp35m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: galpy-1.6.0.post0-cp35-cp35m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 668.7 kB
  • Tags: CPython 3.5m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for galpy-1.6.0.post0-cp35-cp35m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 40cbfc6a426b34a5baeca7ca8474c28543020818f34124ff534211de6e368e74
MD5 ac28105ef6fa590012320f5e2c083128
BLAKE2b-256 7e419ed00e0a1c2bcc9e7131a0e939380404e362576a48d2a1dc479c94774340

See more details on using hashes here.

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