Skip to main content

Unified spectrospatial models: glasses for your spectra.

Project description


spectrackles

Unified spectrospatial models for integral field spectroscopy in jax

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)
  • Migrate some stuff from the model subpackage to a new subpackage called spectroscopy or something, idea to separate generic modelling stuff from applied spectrospatial models stuff
  • Instead of replacing shared leaves with 0, replace with some class/object instead
  • Nicer __repr__ for ShareModule that 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spectracles-0.5.5.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spectracles-0.5.5-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file spectracles-0.5.5.tar.gz.

File metadata

  • Download URL: spectracles-0.5.5.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spectracles-0.5.5.tar.gz
Algorithm Hash digest
SHA256 6bba47a7d9f6ab4c472f15ad38753842107694f6736f15d61877ed896123e80e
MD5 e48eada096a0aa8adfe72890d041d4fd
BLAKE2b-256 a0f920d94ae05c252c0dafd0d20ce3fada2831a33bd4ec3a688cdddb9f49cbda

See more details on using hashes here.

Provenance

The following attestation bundles were made for spectracles-0.5.5.tar.gz:

Publisher: release.yml on TomHilder/spectracles

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spectracles-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: spectracles-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spectracles-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5f98f1bf9859b946cb045baf73c1a06e7731669501046a166318b22414046d42
MD5 9573bc87115e334ae5d9d4a5cbd420e9
BLAKE2b-256 c2422e3e4643595d759777803c8114273d22225675e2b2816f1c0a902f0953ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for spectracles-0.5.5-py3-none-any.whl:

Publisher: release.yml on TomHilder/spectracles

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page