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, 3.9, 3.10. 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.10 (and of 3.7,
3.8, and 3.9 using a more limited, core set of tests) on Linux and
Windows (and 3.10 on Mac OS); Appveyor builds regularly check support
for Python 3.10 on Windows. 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 requiresastroquery
. - 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
requireJAX
. - Use of
SnapshotRZPotential
andInterpSnapshotRZPotential
requirespynbody
.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file galpy-1.8.0.tar.gz
.
File metadata
- Download URL: galpy-1.8.0.tar.gz
- Upload date:
- Size: 532.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a69f4a98a9a094ee5eda8acb2f5c7b3a786388d089423a214ab3b290fceddb53 |
|
MD5 | ed53bb6e0e637242f7e3d8d122f09a51 |
|
BLAKE2b-256 | 7375632c028d3cdd948a4ea1edbfbfa568edfd146e03db0ea56d2bacd0aac231 |
File details
Details for the file galpy-1.8.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 766.4 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fba743a7a5004489fb5afce4793ad9a1270d5fe7620383f4f24798438b56c12 |
|
MD5 | 5ef76d89d883a26ee1d0e823272aadc6 |
|
BLAKE2b-256 | 0a83c950cee65baa00f5eba5c3394c827c4d2fbcb35e6abddca75c1aa24303f7 |
File details
Details for the file galpy-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | defecfc2adb1ac2bce0bf5f62ff32409daf932d3282062bd5a5a619f96e7ea66 |
|
MD5 | 1361d247f8666407f7cf96e71ebd32a2 |
|
BLAKE2b-256 | f8c1486003af72a2a2142a0b89b98fe0d14922b99bc49e1f2138029cfb499227 |
File details
Details for the file galpy-1.8.0-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.5 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae2284094371226fb729ea1a650452351c884f666128369df4fcf77d9d9df6d0 |
|
MD5 | 41201c459a53ce07c33d0211b384b1fa |
|
BLAKE2b-256 | e5a1d648ed5fd0343fe93dcc3fea8aa74fc8cedcf81c66fb4a55f5dfe7fa5a5d |
File details
Details for the file galpy-1.8.0-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 16.5 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2840ecb0f0619d65f5ef36199db0c6680f2cc6002661e42a055ed570c23d8767 |
|
MD5 | 746b41155a7d1eb2a25ee648854dac7b |
|
BLAKE2b-256 | b1df76f44746035c5bde9a1e1ca3544e43e46ff6ff6818bd473671b4f560891a |
File details
Details for the file galpy-1.8.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 766.4 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a103637a76ed0d682f3f52647377d2e26bf99f503bf9dd3764e4312f5c9669d6 |
|
MD5 | 02cd8d1a0e687987d89209c28345cb93 |
|
BLAKE2b-256 | f418ea245289829e98eb6e148e4a71f5fcab48bdb960fde5a768a84f720672f5 |
File details
Details for the file galpy-1.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9847578e69503fb4006a93c7910ea8d316af266d908a3b20557012d051cad733 |
|
MD5 | 652c471e022a6fe61e7527f399783d79 |
|
BLAKE2b-256 | 6a70574f30b1ee8328b5a7b1e02c2fe1aea93cfb2e315e83bd05286d36b01418 |
File details
Details for the file galpy-1.8.0-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.5 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 982be975a5bbc50b3283dfc14612ea6aaf01dc347a7ff9569ab19be678586e63 |
|
MD5 | 2af0b9ca289027068a06689707fec772 |
|
BLAKE2b-256 | a2c46d5271a52585a2dbf0d7ddf0a798fa665bf04b5c134e1306333d7f54fd56 |
File details
Details for the file galpy-1.8.0-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 16.5 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c351232b112d84c3f17d72f7dc0d0ac553c494b8e6324a65f557c0d1c485d123 |
|
MD5 | fdefdca9d16253e1b2f5088042f1df72 |
|
BLAKE2b-256 | a9bab42d51586cefe1c225fab4f88c51652b7e02ebb4f11eeb567f2de880c1b9 |
File details
Details for the file galpy-1.8.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 766.4 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b43ab7911a973afa506b9a32be718513a1d35f6f23c8ad3825b96fd5680d6719 |
|
MD5 | 6f910c7c377b44a409065ced896a5215 |
|
BLAKE2b-256 | e068470d42ecd50fa4a9292f8707174600f154a7ca9083d75d0414f3d6eb5ad8 |
File details
Details for the file galpy-1.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.1 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04962c8ea6b1db6fea18b8b5d3f3bfc0d08ed21f8ce42842e61797713d940e76 |
|
MD5 | e55939070f7f3306aeaa36d0e239c3fd |
|
BLAKE2b-256 | a64f6423d9573db1aabbfec16c8b4cf6a9c378818fc13a2524d1fde51e98d49a |
File details
Details for the file galpy-1.8.0-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.5 MB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3efe8bac85441949317bd2e969709f2d097f2b74bb194b377b7fc378f361b4f |
|
MD5 | 28e853a152267dd5be2dab046c120ef5 |
|
BLAKE2b-256 | e0ce3fcd0dd502126649256685587f4329c67dd3adf287f037f7298526cf959b |
File details
Details for the file galpy-1.8.0-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 16.5 MB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6ddd51345fc237031324775f7f91033c93d7437a1d490e6f4da3b97e661eedd |
|
MD5 | d5004e8611b7d0022869df6d705d6cdd |
|
BLAKE2b-256 | f37a202d0e8241b25cf05c905f9039241b0b4d1c7836b96760c5143110e107ef |
File details
Details for the file galpy-1.8.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 766.4 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa953cbefd2b2ab74f705c4302544d62162a1eac5a76bab996118fde068da0ae |
|
MD5 | 196170cdfb81b4f1dfcabece1095cafb |
|
BLAKE2b-256 | ed995c0f7a173573f68eebc2c017624ff1f3d24b2bdfc25cb8602c6be2a0535d |
File details
Details for the file galpy-1.8.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.1 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30c7a443ba056d23243e0be3954a570f426d61278ad555692ae9aae9c4592e6f |
|
MD5 | 39ae9192bfb6865380cc3d5f37def0ce |
|
BLAKE2b-256 | bd8ba757a0e80d4a01977031445e93fbf352befa6deeca7162d23aa19c0f1e2f |
File details
Details for the file galpy-1.8.0-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 16.5 MB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1e57338a7c5f64b484cd7ec74763f5ab51d4dfa8f9b62d156e3c3b069f2913e |
|
MD5 | c95329e7cbe3764fa973aff288ddc102 |
|
BLAKE2b-256 | 3d1762973c686a862d160084699ff9d5fb0f2e032303588a9a6a6ead04c2d24e |
File details
Details for the file galpy-1.8.0-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 773.1 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39736969c19f8e8f9de74b348b38880ff6e29eb2d754f8134b38db6bb2814969 |
|
MD5 | 99a5778cf8a7184a9083e66c83cce3b5 |
|
BLAKE2b-256 | 49bd0be0e91614fde06a06efb9a47470da9cb702004d13e3dd4dc1d40c4fb854 |
File details
Details for the file galpy-1.8.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.1 MB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00e7544a94410667f7bd5bc8343b69cc39a055e5f7a4df5341a6cd7316f609ad |
|
MD5 | 27db123b0218c480a058af46b2fbf07c |
|
BLAKE2b-256 | 05b636bff383a621e5a8c26645d0ca9536c461f5c82f02c92fe91ee715d06986 |
File details
Details for the file galpy-1.8.0-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: galpy-1.8.0-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 16.5 MB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f28b9b4d698615b17c8ecad10600355a40c2febfa122a04d96f5ba83bd18313a |
|
MD5 | d23db36a7339038ba80c2aec58931652 |
|
BLAKE2b-256 | b32c90aed845383bb8749fb94c814e71cc72acc27bb39f54c7176a9d4d302786 |