Unified spectrospatial models: glasses for your spectra.
Project description
Glasses for your spectra
Spectracles is a Python library for inferring properties of IFU/IFS spectra as continuous functions of sky position.
It can also be used as a general-purpose statistical model library that extends equinox to allow for composable models that may have coupled parameters. It also implements some other nice features that are a bit awkward in equinox out of the box, like easily updating model parameters between fixed and varying.
Installation
Easiest is from PyPI either with pip
pip install spectracles
or uv (recommended)
uv add spectracles
Or, you can clone and build from source
git clone git@github.com:TomHilder/spectracles.git
cd spectracles
pip install -e .
Important: fftw must be installed or the required dependencyjax-finufft will fail to build.
Usage
TODO
Citation
TODO
Help
TODO
TODO
- Relax version requirements from being strictly my environment (which is very up-to-date)
- Instead of replacing shared leaves with
0, replace with some class/object instead - Nicer
__repr__forShareModulethat actually says the memory address - Add memory address to the top of
print_model_tree - Support tuples, lists and dicts of models as attributes of models
- Handle non-odd number of modes
- Write better tests
- Rigorously type check the tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spectracles-0.5.3.tar.gz.
File metadata
- Download URL: spectracles-0.5.3.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ecfc8d6074f66f2a72f62b593ce7d43d41303235972a68bf76c6663c4a5617d
|
|
| MD5 |
5245dcf1452ddb27ff6c543c2a931077
|
|
| BLAKE2b-256 |
090f64bad3b6d9fb867d1f08bd84feb2a38dbeee94026802bcf94d8e59e0ad84
|
Provenance
The following attestation bundles were made for spectracles-0.5.3.tar.gz:
Publisher:
release.yml on TomHilder/spectracles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spectracles-0.5.3.tar.gz -
Subject digest:
8ecfc8d6074f66f2a72f62b593ce7d43d41303235972a68bf76c6663c4a5617d - Sigstore transparency entry: 388424101
- Sigstore integration time:
-
Permalink:
TomHilder/spectracles@5256b2c1cc4b8d845ea1dc7543516c3a3072bf46 -
Branch / Tag:
refs/tags/v0.5.3 - Owner: https://github.com/TomHilder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5256b2c1cc4b8d845ea1dc7543516c3a3072bf46 -
Trigger Event:
push
-
Statement type:
File details
Details for the file spectracles-0.5.3-py3-none-any.whl.
File metadata
- Download URL: spectracles-0.5.3-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8a392943ad74936b169ecdea2419cac5ea173c20c28bc2fa561ad9e099c162f
|
|
| MD5 |
c6fb50423e73dab0931425bc11e788f8
|
|
| BLAKE2b-256 |
cea1c0c9be0de429d96e7231f749e4cc5ac6d1c92b4fb171c025d0c136d3398c
|
Provenance
The following attestation bundles were made for spectracles-0.5.3-py3-none-any.whl:
Publisher:
release.yml on TomHilder/spectracles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spectracles-0.5.3-py3-none-any.whl -
Subject digest:
d8a392943ad74936b169ecdea2419cac5ea173c20c28bc2fa561ad9e099c162f - Sigstore transparency entry: 388424107
- Sigstore integration time:
-
Permalink:
TomHilder/spectracles@5256b2c1cc4b8d845ea1dc7543516c3a3072bf46 -
Branch / Tag:
refs/tags/v0.5.3 - Owner: https://github.com/TomHilder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5256b2c1cc4b8d845ea1dc7543516c3a3072bf46 -
Trigger Event:
push
-
Statement type: