Skip to main content


[![PyPI](https://img.shields.io/pypi/v/progenitor-probability.svg)](https://pypi.python.org/pypi/progenitor-probability/) [![Python](https://img.shields.io/pypi/pyversions/progenitor-probability.svg)](https://pypi.python.org/pypi/progenitor-probability/)
## *README* for `tabulate_progenitor_probability.py`

### Reference:
[***Martin et al. 2018a***](https://doi.org/10.1093/mnras/stx3057 "Martin+18a"),
*Martin, G., Kaviraj, S., Devriendt J. E. G., Dubois Y., Pichon C. and Laigle C., MNRAS, 474, 3140*


### Contact:
[g.martin4@herts.ac.uk](mailto:g.martin4@herts.ac.uk "email")


### Purpose:
Reads `fractions.dat` binary file and returns the joint progenitor probability for given redshift, mass, environment (percentile) and star-formation rate (i.e. the probability that a galaxy with given properties has spheroidal morphology at z=0). If one or more dimensions are not specified, the joint progenitor probability is returned with missing dimensions marginalised out.


### Prerequisites:
* `fractions.dat`
* numpy
* scipy

### Installation:

pip install progenitor-probability


### Usage:

#### Using the built-in script:

```
tabulate_progenitor_probability.py -z 0.4 -m 10.8
0.266751184855
```
```
tabulate_progenitor_probability.py --help

usage: tabulate_progenitor_probability.py [-h] [-z REDSHIFT] [-m MASS]
[-p DENSITY] [-s SFR]

optional arguments:
-h, --help show this help message and exit
-z REDSHIFT, --redshift REDSHIFT
Redshift
-m MASS, --mass MASS Log10 stellar mass/M_sun
-p DENSITY, --density DENSITY
Local number density percentile [0,100]
-s SFR, --SFR SFR SFR in M_sun/yr
```

**-z** *redshift*

**-m** *log<sub>10</sub>(stellar mass / M<sub>sun</sub>)*

**-p** *percentile of local number density* in the range [0,100] (see [Martin et al. 2018a](https://doi.org/10.1093/mnras/stx3057 "Martin+18a"))

**-s** *star formation rate in M<sub>sun</sub>/yr*

#### Importing the package

```
from progenitor_probability import progenitor_probability
>>> progenitor_probability(redshift=0.4, mass=10.8)
0.266751184855
```


Metadata

Release files for progenitor-probability 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for progenitor-probability 1.1
File Size Uploaded Provenance Actions
progenitor_probability-1.1.tar.gz 4.3 kB Without provenance Details for progenitor_probability-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for progenitor-probability 1.1
File Interpreter ABI Platform Actions
progenitor_probability-1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for progenitor_probability-1.1-py2.py3-none-any.whl

Total release size: 344.8 kB

Release files / progenitor_probability-1.1.tar.gz

Download URL progenitor_probability-1.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fd02ac388dd07eb41328578844783591d83b63a8ed17715e4a566482bcd7caf5
BLAKE2b-256 checksum
How to use checksums
47c342ea227071758604751e6ae6b49952f7398c3b05514434572ef20f5b7fac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / progenitor_probability-1.1-py2.py3-none-any.whl

Download URL progenitor_probability-1.1-py2.py3-none-any.whl
Size 340.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d02f2cf158fdde806b485079c7a0d1f07085b3c6650589d8a81db1c5dcfa85ae
BLAKE2b-256 checksum
How to use checksums
3661501cd2b13b6245f1f3942fac217c5d88a9f372e7222a1707bff92aadf3ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Security for progenitor-probability 1.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page