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.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| midas_zipper-0.4.0.tar.gz | 51.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| midas_zipper-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 94.9 kB
Release files / midas_zipper-0.4.0.tar.gz
| Download URL | midas_zipper-0.4.0.tar.gz |
|---|---|
| Size | 51.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96b0765e3151d6a2be3a9d22d78fd86171552b0ba7f820d030f8aef3ec58c0ba
|
|
BLAKE2b-256 checksum How to use checksums |
895765eae061beb84f8742f53eafd1e65b2f339f755594ebcf4daf21dc31b4fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 14, 2026.
Transparency logRelease files / midas_zipper-0.4.0-py3-none-any.whl
| Download URL | midas_zipper-0.4.0-py3-none-any.whl |
|---|---|
| Size | 43.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ead9d5cf6affd52571e5d050f13e5a0ebe97acb9f06b98b624e7d5a9162aa1a
|
|
BLAKE2b-256 checksum How to use checksums |
186c0b29a594a9be335f9af531e19e5278a43c3ce4c70aa8538cffa58c3c9a11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 14, 2026.
Transparency log