Skip to main content

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.

Notebooks

Worked-example Jupyter notebooks live in notebooks/. They are not shipped with pip install — get them by cloning the MIDAS repository.

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.

Metadata

Release files for midas-zipper 0.5.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 midas-zipper 0.5.0
File Size Uploaded Provenance Actions
midas_zipper-0.5.0.tar.gz 54.2 kB With provenance Details for midas_zipper-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for midas-zipper 0.5.0
File Interpreter ABI Platform Actions
midas_zipper-0.5.0-py3-none-any.whl Python 3 none any Details for midas_zipper-0.5.0-py3-none-any.whl

Total release size: 100.0 kB

Release files / midas_zipper-0.5.0.tar.gz

Download URL midas_zipper-0.5.0.tar.gz
Size 54.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d64ea48bf10b5a6920302883e9bbe096c16a9188be1f5679585e0ef315c94cb7
BLAKE2b-256 checksum
How to use checksums
671a7118db388ac564c6bb42c371970d6a6b307fca374c6166c68e5685ef4175
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 / midas_zipper-0.5.0-py3-none-any.whl

Download URL midas_zipper-0.5.0-py3-none-any.whl
Size 45.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e704add5a97244950c1ddbeee074126c27c99c1c8339f12c70a22d602450e970
BLAKE2b-256 checksum
How to use checksums
ed9f6d36bd54a1ac17b19f76ae7a1d885bec1723a3b49997d8515ec530f68806
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 midas-zipper 0.5.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 midas_zipper-0.5.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