nnapec
An emulator for the APEC model
- Free software: GNU General Public License v3
- Documentation: https://jmichaelburgess.com/nnapec
Installation
pip install nnapec
How to
The APEC model is incredibly slow. This is not fun.
Here we provide an neural net emulator that can be used with astromodels and
3ML which is much faster than using pyatomdb.
import numpy as np
from nnapec import get_apec_model
# get an instance of the apec model
# multiple instances can be used
nn_apec = get_apec_model()
nn_apec.redshift = 1.
nn_apec.redshift.fix = True
nn_apec.kT = 3.
nn_apec.abund = 0.3
energies = np.geomspace(0.1, 10., 1000)
photon_flux = nn_apec(energies)
- TODO
- Currently the model is trained with the
AG89abundances - Will train more models if needed
- Currently the model is trained with the
Credits
Metadata
Release files for nnapec 0.1.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 | Actions |
|---|---|---|---|---|
| nnapec-0.1.1.tar.gz | 12.5 MB | Without provenance | Details for nnapec-0.1.1.tar.gz |
Release files / nnapec-0.1.1.tar.gz
| Download URL | nnapec-0.1.1.tar.gz |
|---|---|
| Size | 12.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ccb95fbf7f6782be01ceaa8a11f49e91784b41e0ac7305b696ce58ba1a0f5f8
|
|
BLAKE2b-256 checksum How to use checksums |
23d0e5f154a6669422e13c45903c628f2e4c69fdc448e8ee4bc9cabfe9be45a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for nnapec 0.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.