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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file midas_zipper-0.1.2.tar.gz.
File metadata
- Download URL: midas_zipper-0.1.2.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2647f6419c74f667d365df9279ee335ae44b7d1e371b35b6ca3d34c824d53b9f
|
|
| MD5 |
68471887c6ceb5b0466c279694fbc9c0
|
|
| BLAKE2b-256 |
5c532452b57972afffd265ab178d133ab1acba92942e21fcdcaec957af48467a
|
Provenance
The following attestation bundles were made for midas_zipper-0.1.2.tar.gz:
Publisher:
python-packages.yml on marinerhemant/MIDAS
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
midas_zipper-0.1.2.tar.gz -
Subject digest:
2647f6419c74f667d365df9279ee335ae44b7d1e371b35b6ca3d34c824d53b9f - Sigstore transparency entry: 1589036755
- Sigstore integration time:
-
Permalink:
marinerhemant/MIDAS@3dab75fd0eccf73780a9d2ce8477eb70c4316484 -
Branch / Tag:
refs/tags/midas-zipper-v0.1.2 - Owner: https://github.com/marinerhemant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-packages.yml@3dab75fd0eccf73780a9d2ce8477eb70c4316484 -
Trigger Event:
release
-
Statement type:
File details
Details for the file midas_zipper-0.1.2-py3-none-any.whl.
File metadata
- Download URL: midas_zipper-0.1.2-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06050c26930fd6cdaf64e91fd24177aa29d4e4b88dca7841dc156ef76f84d330
|
|
| MD5 |
9e7a03056066bdca642aa79a2d0206b4
|
|
| BLAKE2b-256 |
8db1b7fa22304d11ea491fa9124f2287d02e09dd80f749fde132fdcf93273b0f
|
Provenance
The following attestation bundles were made for midas_zipper-0.1.2-py3-none-any.whl:
Publisher:
python-packages.yml on marinerhemant/MIDAS
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
midas_zipper-0.1.2-py3-none-any.whl -
Subject digest:
06050c26930fd6cdaf64e91fd24177aa29d4e4b88dca7841dc156ef76f84d330 - Sigstore transparency entry: 1589036810
- Sigstore integration time:
-
Permalink:
marinerhemant/MIDAS@3dab75fd0eccf73780a9d2ce8477eb70c4316484 -
Branch / Tag:
refs/tags/midas-zipper-v0.1.2 - Owner: https://github.com/marinerhemant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-packages.yml@3dab75fd0eccf73780a9d2ce8477eb70c4316484 -
Trigger Event:
release
-
Statement type: