Skip to main content

Standalone zarr-zip generation for MIDAS FF/PF workflows (no C-binary or source-tree dependency).

Project description

midas-zipper

Standalone zarr-zip generation for MIDAS FF/PF workflows.

pip install midas-zipper works with no MIDAS source tree and no compiled C binaries — it depends only on numpy, h5py, zarr, numcodecs, numba, and pillow, plus the system zip/bzip2 tools.

It packages the zarr ingest that the FF and PF pipelines need to turn raw detector data (HDF5/GE/TIFF) into the *.MIDAS.zip files the rest of MIDAS consumes — previously the source-tree script utils/ffGenerateZipRefactor.py, which broke pip-only installs because it lived outside any package.

CLI

# FF zarr-zip generation (formerly ffGenerateZipRefactor.py)
midas-ff-zip -resultFolder <dir> -paramFN <params.txt> -LayerNr <n>

# Update a key inside an existing Zarr.zip
midas-update-zarr -fn <file.MIDAS.zip> -keyToUpdate <key> -updatedValue <...>

Both are also runnable as modules:

python -m midas_zipper.ff_zip   -resultFolder ... -paramFN ... -LayerNr ...
python -m midas_zipper.update_zarr -fn ... -keyToUpdate ... -updatedValue ...

Python API

from midas_zipper import generate_ff_zip

generate_ff_zip(
    result_folder="/path/to/scan",
    param_file="/path/to/Parameters.txt",
    layer_nr=1,
)

Scope

This package intentionally excludes AutoCalibrateZarr.py: that tool drives the C/OpenMP calibration binaries (CalibrantPanelShiftsOMP, CalibrantIntegratorOMP, GetHKLList) and so cannot be pip-portable. It stays with the calibration workflow.

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

midas_zipper-0.1.1.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

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

midas_zipper-0.1.1-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file midas_zipper-0.1.1.tar.gz.

File metadata

  • Download URL: midas_zipper-0.1.1.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for midas_zipper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e02b5ae914c9bba20a0648a598f91160962078305e78c72d444524e51467f253
MD5 ae9aeb6ab04c2975e06c23d8ee6f07a2
BLAKE2b-256 49713b5f00b4817b6ea68c241d3bd83cb713b450471dea8c4ee7e3f1ca11eb4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for midas_zipper-0.1.1.tar.gz:

Publisher: python-packages.yml on marinerhemant/MIDAS

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

File details

Details for the file midas_zipper-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: midas_zipper-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for midas_zipper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8c27597e548ed4587a74ea1f99aec41cea98e92a352b97cfc0c5fb91f217169
MD5 a4a86e494c8f62426f0ccdd56704b7c0
BLAKE2b-256 a7fb31ebb539bfeed8310ed4195d12fad2bffacd3f6a0d466c1af91d4ed4620d

See more details on using hashes here.

Provenance

The following attestation bundles were made for midas_zipper-0.1.1-py3-none-any.whl:

Publisher: python-packages.yml on marinerhemant/MIDAS

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