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.1.3

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.1.3
File Size Uploaded Provenance Actions
lvm_tools-0.1.3.tar.gz 15.9 kB With provenance Details for lvm_tools-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 36.7 kB

Release files / lvm_tools-0.1.3.tar.gz

Download URL lvm_tools-0.1.3.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d7152994f6df189adfda7365cbe8c73c8b447a89f8d2ca320abecca60ef48179
BLAKE2b-256 checksum
How to use checksums
05165daace4249815ffd9347da5d00765a268d6ee3981c41dedece740ac66e8f
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 Oct 28, 2026.

Transparency log

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

Download URL lvm_tools-0.1.3-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd2864caf06e1f9cc5ed1f0600f66d9c4fd0323e69b46a38e5f25d18c556f0ba
BLAKE2b-256 checksum
How to use checksums
bebb30a072819401d2525cdb247b407d2bd0755c38a175ff6d6cab02294e67a8
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 Oct 28, 2026.

Transparency log

Security for lvm-tools 0.1.3

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.1.3.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 Oct 28, 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