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.7, 3.8, and 3.9. It should also work on earlier Python 3.* versions, but this is not extensively tested on an ongoing basis and because libraries that galpy depends on are dropping earlier Python 3.* versions, galpy itself likely doesn't fully work on them. GitHub Actions CI builds regularly check support for Python 3.9 (and of 3.7, and 3.8 using a more limited, core set of tests) on Linux and Windows; Appveyor builds regularly check support for Python 3.9 on Windows. While most of galpy likely works in Python 2.7, this is no longer tested and Python 2.7 is no longer officially 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.
  • Plotting arbitrary functions of Orbit attributes requires numexpr.
  • 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!

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.7.0.tar.gz (502.1 kB view details)

Uploaded Source

Built Distributions

galpy-1.7.0-cp39-cp39-win_amd64.whl (738.1 kB view details)

Uploaded CPython 3.9 Windows x86-64

galpy-1.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

galpy-1.7.0-cp39-cp39-macosx_10_9_x86_64.whl (734.6 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

galpy-1.7.0-cp38-cp38-win_amd64.whl (737.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

galpy-1.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

galpy-1.7.0-cp38-cp38-macosx_10_9_x86_64.whl (738.1 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

galpy-1.7.0-cp37-cp37m-win_amd64.whl (737.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

galpy-1.7.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

galpy-1.7.0-cp37-cp37m-macosx_10_9_x86_64.whl (738.1 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

galpy-1.7.0-cp36-cp36m-win_amd64.whl (737.7 kB view details)

Uploaded CPython 3.6m Windows x86-64

galpy-1.7.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

galpy-1.7.0-cp36-cp36m-macosx_10_9_x86_64.whl (732.8 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file galpy-1.7.0.tar.gz.

File metadata

  • Download URL: galpy-1.7.0.tar.gz
  • Upload date:
  • Size: 502.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for galpy-1.7.0.tar.gz
Algorithm Hash digest
SHA256 99d499bb6a8d8fcc6e62b100ebdf583286e802801372ab38b5aab199e792ab30
MD5 e57fa62ff8cd6356e522d06eae9aafd9
BLAKE2b-256 54562f2cb1b6ee8d402cf6cf60c6cd15545215d902210e829da0954f6dad175a

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: galpy-1.7.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 738.1 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for galpy-1.7.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3f65f19fb9073439f4122a6bfcc1fb65e7bb6ccc4f097762a705348c5309affd
MD5 9309c8f05fad9cc997b3d1b6dadb2391
BLAKE2b-256 48e29cd74e923c748c18cdcd85a5f8d6e23952e5f49f098007b7b31c2709974d

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for galpy-1.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c29fda59f678efff083a2ca8531a3fc15c07982690e217b547b625da8a35d913
MD5 5b56d00fab915d9be6988d40642606f7
BLAKE2b-256 c0c5606ef1ddbd0492f8fc8d144158e0667716424230ff57eb37112a9f240347

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: galpy-1.7.0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 734.6 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for galpy-1.7.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 261b55ec84068d045bd5a58221035f3612bcc64caa77b9399ee74b1b588303e5
MD5 3473d8a29d3261c083ee7712d01f63f1
BLAKE2b-256 556378df0855240acd5ae53a4b5ce14306ee67c9d79363c1e3edc66d58c735ca

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: galpy-1.7.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 737.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for galpy-1.7.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 368ff3cc7c2b138b71c28e2113bd207ab7efab1be9468fa58387b047342d447f
MD5 23cd12ea46a5028d3864ee52505848cc
BLAKE2b-256 3ebdaa17f61ed365393e94897797cec512305c880b014d6b8dab3070acdb8658

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for galpy-1.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3ffae24b7d725735d1a24f8333e41bb88e2e0edd5206fa4590197687c1eac572
MD5 8fc0afa758dc5a977d9f026db95efa83
BLAKE2b-256 24d84ea60b7b1c929308b6eee1bd64ae4e0a0f5982f778d48c78474cfdf52172

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: galpy-1.7.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 738.1 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for galpy-1.7.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a6d3f2a1c912d934b90f927151860ab36f7f3486435c5476475448e228c4ed4b
MD5 d3ba1e64e8c8d697455a088559625855
BLAKE2b-256 86eea0f1f1b6d9af724cbd8e9bcab9b5efd40424a5ae4d573f520e4e61190eb8

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: galpy-1.7.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 737.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for galpy-1.7.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 40c6089f24b319aae22eeeb8e9420de1a4ed4b6eed47bfde3c790e8ed11a972e
MD5 005aa7795c7c924f22982da7b4aa35c2
BLAKE2b-256 628c8b7b1d324c8516895312c0e3110af87ea3577abe80d1ec3823a5c246fe99

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for galpy-1.7.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 66639009c9e5db6da705c31914396c179a66bf8fca20c68bcf4d9077edb15a83
MD5 fe443b67e109cc20b7232a5f141aa3c2
BLAKE2b-256 033c105d7ee85f05540c2ff462597d6fb6299b3fc3c26f7053fb6c1322673523

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: galpy-1.7.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 738.1 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for galpy-1.7.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d17004581b74555a5bd59812417816e5b9432472b7f604ccb688e3a94f933045
MD5 2d72f9099fb08eefcc61dec5ee19866d
BLAKE2b-256 eacf7f8900005d94ee937c93f994ada00b266f59ef42ceca175a9add83f3a721

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: galpy-1.7.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 737.7 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for galpy-1.7.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e3b4a0f45acfa1511a1f3bc9b6099967963d80e6e3be397bab9083bd76855bca
MD5 c416fd686ddb97ca41c2631a5dabd08b
BLAKE2b-256 3b23c97e3629d75c917a753b50459e8ec3cce38ee2e9d7fe166b3c326587e9ea

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for galpy-1.7.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0232f382cc638b7878fcb1f8f9504be174293bd39f66be2b841c99b16a6e8a5b
MD5 dd5b5389685c41d6198de13b5b3d83fb
BLAKE2b-256 947515948c2c91317492af8b47ba286147470a020b302966cb5248c8ebce0c5f

See more details on using hashes here.

File details

Details for the file galpy-1.7.0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: galpy-1.7.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 732.8 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for galpy-1.7.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d278e5b2a372093098c5ead17aaaa4b8d5f310d9bb042f268c745f738eba2ec7
MD5 c6ec166d948a05f3b5d16dda056dba7b
BLAKE2b-256 6f4df06382c5e21ce4c4624f7629f329bbe38d720d567ede4cdf3e3e559c87b4

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