scarlet2
scarlet2 is an open-source python library for modeling astronomical sources from multi-band, multi-epoch, and multi-instrument data. It provides non-parametric and parametric models, can handle source overlap (aka blending), and can integrate neural network priors. It's designed to be modular, flexible, and powerful.
scarlet2 is implemented in jax, layered on top of the equinox library. It can be deployed to GPUs and TPUs and supports optimization and sampling approaches.
Installation
For performance reasons, you should first install jax with the suitable jaxlib for your platform. After that
pip install scarlet2
should do. If you want the latest development version, use
pip install git+https://github.com/pmelchior/scarlet2.git
This will allow you to evaluate source models and compute likelihoods of observed data, so you can run your own
optimizer/sampler. If you want a fully fledged library out of the box, you need to install optax, numpyro, and
h5py as well.
Metadata
Release files for scarlet2 0.5.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 |
|---|---|---|---|---|
| scarlet2-0.5.1.tar.gz | 629.4 kB | With provenance | Details for scarlet2-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scarlet2-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for scarlet2-0.5.1-py3-none-any.whl |
Total release size: 726.6 kB
Release files / scarlet2-0.5.1.tar.gz
| Download URL | scarlet2-0.5.1.tar.gz |
|---|---|
| Size | 629.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2dd5c77179d18ce24db17a072b6a851339339bbe7f9812cb0c85bbc79a57b370
|
|
BLAKE2b-256 checksum How to use checksums |
a9c59d2a4cb6275c764a72d6846b9f12da38a404a833cf2e10c19a70ff92b588
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Apr 3, 2026.
Transparency logRelease files / scarlet2-0.5.1-py3-none-any.whl
| Download URL | scarlet2-0.5.1-py3-none-any.whl |
|---|---|
| Size | 97.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7765189a094455ac3efe9e1f5528f265025b7cd58f5ceaf81632122618acaa0d
|
|
BLAKE2b-256 checksum How to use checksums |
b75c6b3c9fcc405066394268741c4ad32990e49b4cdbaca44213ae752ecf6258
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Apr 3, 2026.
Transparency logSecurity for scarlet2 0.5.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for scarlet2-0.5.1.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 Apr 3, 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.