hcd-priya-models
The trained models of hcd_priya, the Lyman-alpha forest P1D emulator with
high-column-density absorber classes. This package holds data only. hcd-priya depends on it, so installing
hcd-priya installs the models too:
import hcd_analysis.predictor as hp
emu = hp.load_published() # the LF+MF model
# the nine PRIYA parameters; these values are the midpoint of each parameter's training range,
# which is not a fiducial cosmology: put your own here
params = {"ns": 0.925, "Ap": 1.9e-9, "herei": 4.0, "heref": 2.7, "alphaq": 2.15,
"hub": 0.70, "omegamh2": 0.143, "hireionz": 7.25, "bhfeedback": 0.05}
pred = emu.predict(params, z=3.0, tau0_amp=1.0, dtau0=0.0)
print("shape of pred.P_class, the P1D of clean, LLS, subDLA, DLA:", pred.P_class.shape)
shape of pred.P_class, the P1D of clean, LLS, subDLA, DLA: (4, 172)
- What it holds. The LF+MF release of the emulator (its name in this package is
lfmf;load_published()loads it without a name): the low-fidelity backbone bundle, the multi-fidelity record of the class spectra, the incidence multi-fidelity record (the correction of dN/dX and the CDDF, with their held-out errors), the P1D held-out record (the held-out prediction residual of the class spectra, with every residual vector it was reduced from) andrelease.json, in the pickle-free format described in the hcd_priya documentation. - How it is checked.
hcd-priyapins the sha256 of the release it accepts.load_publishedloads the files of this package only if they verify against that digest, file by file. This package loads nothing itself. - How it is built. The model files are not in git.
python model_package/prepare.py --release RELEASE_DIR --release-sha256 SHA256 --allow-extra examplescopies an accepted release in after checking its digest and verifies every file (the release holds anexamplesfolder thatrelease.jsondoes not name, so the command names it; without the optionprepare.pystops);python -m build --outdir <dir> model_packagethen builds the wheel and the source archive. For tests,prepare.py --syntheticmakes a stand-in with untrained networks (the pinned version with the label+synthetic, never published), whichload_publishedloads only whenHCD_PRIYA_ALLOW_SYNTHETIC=1is set. The docstring ofprepare.pyhas the details. - Versions. The version of this package is the version of the model bundle it holds. A version of
hcd-priyaaccepts the model versions it pins; a model package it does not know is refused with a message that names both. - Licence. The model files are released under the Creative Commons Attribution 4.0 International licence
(CC BY 4.0); the few lines of Python in this package, and the example script a release carries, are under the MIT
licence, like the code. See
LICENSE, and theLICENSEfile of the release inside the package. - Where it comes from. The package is built and tested in the hcd_priya repository (
model_package/); the model files are copied in at build time and are not in git. The same release is published as files, with its reference predictions, on the GitHub release of that version: https://github.com/jibanCat/hcd_priya/releases/tag/v1.0.0.
Metadata
Release files for hcd-priya-models 1.0.0
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 |
|---|---|---|---|---|
| hcd_priya_models-1.0.0.tar.gz | 39.7 MB | With provenance | Details for hcd_priya_models-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hcd_priya_models-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for hcd_priya_models-1.0.0-py3-none-any.whl |
Total release size: 79.3 MB
Release files / hcd_priya_models-1.0.0.tar.gz
| Download URL | hcd_priya_models-1.0.0.tar.gz |
|---|---|
| Size | 39.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3d93c3191d8ce2c099a0fdc6b99de13db8d6031692c4292c2c9b6b399c4d303
|
|
BLAKE2b-256 checksum How to use checksums |
c14fdf625a73a79ca151591fbbd6c9e21534823f5e471478779b225b297f2db3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / hcd_priya_models-1.0.0-py3-none-any.whl
| Download URL | hcd_priya_models-1.0.0-py3-none-any.whl |
|---|---|
| Size | 39.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00c2df0a519e0a0add21e2759d17193654017a9bbbc9813b8882d9956e35da5c
|
|
BLAKE2b-256 checksum How to use checksums |
6fbef175d981da06cc6c7420a327a980a61e983e9c4f1583138a979318ae199f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for hcd-priya-models 1.0.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for hcd_priya_models-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA 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.