kimmy
Galactic chemical evolution in python
Overview
kimmy contains simple tools to study chemical evolution in galaxies.
Author
Jo Bovy (University of Toronto): bovy - at - astro - dot - utoronto - dot - ca
Installation
Clone/fork/download the repository and install using
sudo python setup.py install
or locally using
python setup.py install --user
Usage
For an example of usage, see the example notebook. You can also launch a Binder instance and directly play around with this notebook.
Currently, the only implemented feature is a simple one-zone chemical model with two elements O (for oxygen) and Fe (for iron). Initialize this model as
import kimmy
oz= kimmy.OneZone()
then for example compute the evolution of the default model and plot the [O/Fe] vs. [Fe/H] sequence
ts= numpy.linspace(0.001,10.,1001)*u.Gyr
plot(oz.Fe_H(ts),oz.O_Fe(ts))
To compute the distribution of [Fe/H], do for example,
FeHs= numpy.linspace(-1.525,1.225,56)
FeH_dist= [oz.Fe_H_DF(f) for f in FeHs]
and similar for the distribution of [O/H] and [O/Fe]. You can directly update the main parameters of the model and the model will be re-computed. For example, to set the outflow mass-loading parameter to one and plot the [O/Fe] vs. [Fe/H] sequence, do
ts= numpy.linspace(0.001,10.,1001)*u.Gyr
oz.eta= 1.
plot(oz.Fe_H(ts),oz.O_Fe(ts))
Keep in mind that once you change a parameter, it remains changed in the model. If you want to go back to the initial set of parameters that you used to initialize the instance, use oz.initial(); if you want to go back to the default set of parameters, use oz.default(). If you want to print the model you are using at any time, do
print(oz)
which prints a nicely formatted list of all of the model parameters.
Metadata
Release files for kimmy 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kimmy-0.1.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kimmy-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / kimmy-0.1.tar.gz
| Download URL | kimmy-0.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a55afb4711827595d8f518f320a51161aa5356225bb13ed7ed8dc42b651d74aa
|
|
BLAKE2b-256 checksum How to use checksums |
1693cb9cec938ac4f11f5eadad0192b2f817c372ae754eb6e5c27df1f4896132
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
|
Release files / kimmy-0.1-py3-none-any.whl
| Download URL | kimmy-0.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7219be8739a4989cae9067ac379092e4c23b0641d6fbcf03413fd590996ebacf
|
|
BLAKE2b-256 checksum How to use checksums |
eda1de3045afe3d2671b7c57d30c5dccadfb27ef5d7988909d4ac736575d2579
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
|
Security for kimmy 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.