Skip to main content

lvm_tools

Lightweight wrapper of LVM DRP data with an emphasis on modularity. Allows for lazy reading via dask, especially useful for fitting large models. Designed for use with spectrospatial models via spectracles but probably useful for other things too.

Feel free to contact me personally if you have any questions at all.

Installation

Easiest is from PyPI either with pip

pip install lvm-tools

or uv (recommended)

uv add lvm-tools

Or, you can clone and build from source

git clone git@github.com:TomHilder/lvm_tools.git
cd lvm_tools
pip install -e .

Documentation

Full documentation: tomhilder.github.io/lvm_tools

Usage

TODO

Citation

TODO

Help

TODO

TODO

  • Extend wavelength range support in DataConfig to support multiple segments in λ
    • The point of this is to be able to fit two lines at very diffferent λ at once without reading all the data between the lines
  • The DataConfig.from_tiles is too slow. Cause: the cubes were read in full when the tiles were opened (one dask chunk per cube, and da.from_array reading the whole array), not calc_normalisation. Now only the selected wavelength chunks are read. Skipping the normalisation when it's already chosen could still save a little.
  • Relax version requirements from being strictly my environment (which is very up-to-date)
  • repr for FitData
  • Logging/hashing
  • Cache
  • OptConfig
  • Testing ?

Metadata

Release files for lvm-tools 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lvm-tools 0.2.0
File Size Uploaded Provenance Actions
lvm_tools-0.2.0.tar.gz 27.5 kB With provenance Details for lvm_tools-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lvm-tools 0.2.0
File Interpreter ABI Platform Actions
lvm_tools-0.2.0-py3-none-any.whl Python 3 none any Details for lvm_tools-0.2.0-py3-none-any.whl

Total release size: 61.5 kB

Release files / lvm_tools-0.2.0.tar.gz

Download URL lvm_tools-0.2.0.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
809878b8c9cd7c4d21da9198e21b77f28d224ff212232ffd9d41d77ee54d13d4
BLAKE2b-256 checksum
How to use checksums
8babfb6f478c87de53231dbfb554a575396c914f45d4fbcd72df3c25534638a1
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 3, 2026.

Transparency log

Release files / lvm_tools-0.2.0-py3-none-any.whl

Download URL lvm_tools-0.2.0-py3-none-any.whl
Size 34.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
401e2be0f80cd919f12e781ec5a38643d7fa9dbcdc7d3d287073d5ae5a7245b0
BLAKE2b-256 checksum
How to use checksums
e76b8960b089176a36190b9f582b1ce4668f66ed017c77dc85f639e842488857
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 3, 2026.

Transparency log

Security for lvm-tools 0.2.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.

Select from 2 files

Attestation for lvm_tools-0.2.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 3, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page