Skip to main content

Generic loaders for ESRF useful files

Project description

esrf-loadfile

Standalone re-usable loader utilities for ESRF DCT and tomography data formats.
These helpers were extracted from the StatusGUI code base so that other tools can inspect .h5, .mat, .cif, and reflection files without depending on the GUI.

Installation

pip install esrf-loadfile

For local development inside the StatusGUI monorepo you can install it in editable mode:

pip install -e loadfile

Usage

from esrf_loadfile import loadFile

handler = loadFile("/path/to/parameters.h5")
print(handler.get_keys("entry/detector"))

# Nested keys work end-to-end:
dataset = handler.get_value("entry/detector/data")
print(handler.get_size("entry/detector/data"))
print(handler.get_description("entry/detector/data"))

Development

Install the project in editable mode together with its test dependencies and run the test-suite:

pip install -e .[test]
PYTHONPATH=src pytest

To run the code-coherency checks (imports/formatting/linting) install the dev extras and run Ruff on the sources:

pip install -e .[dev]
ruff check src 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

esrf_loadfile-0.2.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

esrf_loadfile-0.2.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file esrf_loadfile-0.2.0.tar.gz.

File metadata

  • Download URL: esrf_loadfile-0.2.0.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for esrf_loadfile-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0dd9e0dfe139eca5c6e2103cbf4789e97e1d7ac4486799abfcc61ab1ac9410ca
MD5 9be4b0a7c42b261013956f0567ee59c1
BLAKE2b-256 24cad97d163b84cdf659b123bbe59b871ed9c6c0579f17ac0fe71451099ac228

See more details on using hashes here.

File details

Details for the file esrf_loadfile-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: esrf_loadfile-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for esrf_loadfile-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e04a5a4b391638cb5d075a0ee98922622fdd889b1d8600fb3db0014d93486d3c
MD5 382928c177b10cc03427f4d4c4541722
BLAKE2b-256 682b554ed88145f57cb49c3bc5b034670a48d850a5d485231f33f92ea3499e19

See more details on using hashes here.

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