Repository navigation
v4.7.0
Highlights
OpenImpala v4.7.0 adds cloud-native OME-NGFF (v0.4/v0.5) Zarr I/O, zero-dependency Otsu grayscale thresholding, discrete & grayscale volume coarsening, high-level AMReX plotfile export (yt / ParaView), synthetic porous-media & ML surrogate dataset generators, verified sample dataset fetching, six executable Google Colab tutorial notebooks, and JOSS 2026 submission readiness.
Ecosystem Usability & Cloud-Native I/O (#305, #306)
- Cloud-Native OME-Zarr I/O (
openimpala[zarr], #218): Read and write chunked 3-D OME-NGFF v0.4 (Zarr v2) and v0.5 (Zarr v3) multiscale volumes viaoi.read_zarr_volume(),oi.write_zarr_volume(),VoxelImage.from_zarr(),VoxelImage.to_zarr(), and direct.zarrpath support acrossoi.read_image()and all high-level solvers, preserving physical(dz, dy, dx)coordinate scale transforms across 3-D/4-D/5-D(t, c, z, y, x)stores. - Zero-Dependency Otsu Segmentation (#214): Exact integer-bincount (
uint8/int8/uint16/int16) and histogram Otsu thresholding viaoi.otsu_threshold()/oi.calculate_otsu_threshold(),oi.binarize_otsu(),VoxelImage.from_grayscale_otsu(),oi.read_image(..., threshold="otsu", dark_is_pore=...), and--threshold otsu(--dark-is-pore/--bright-is-pore) in theopenimpalaCLI. - Volume Coarsening / Downsampling (#7):
oi.downsample_volume()andVoxelImage.downsample()with exact majority-vote phase pooling (preserving discrete phase IDs without creating intermediate integers), grayscale block-mean pooling, and automatic(dz, dy, dx)voxel-size scaling. - Out-of-Core AMReX Plotfiles &
ytIntegration (#215): Passwrite_plotfile=Truetooi.tortuosity(),oi.tortuosity_all(), andoi.effective_diffusivity()(or calloi.write_amrex_plotfile()) across both compiled C++ and pure-Python backends to emit BoxLibHyperCLaw-V1.1plotfiles loadable directly inytand ParaView. - Verified Benchmark Dataset Registry (#221):
openimpala.datasets(two_phase_stack,two_phase_cubic,sphere_pack,list_datasets(),fetch_example(),fetch_path()) with SHA-256 checksum verification, version-tag URL resolution, and bounded socket timeouts. - Zero-Dependency Upstream Bridges (#210): Pass STFC Core Imaging Library (CIL)
ImageData(automatically extracting.geometryvoxel pitches),xarray.DataArray,zarr.Array, orh5py.Datasetobjects directly to any high-level solver.
Synthetic Microstructures & ML Surrogate Generator (#225)
-
openimpala.syntheticModule: Reproducible 3-D generators (gaussian_blobs(),overlapping_spheres(), and periodic-EDTmultiphase_electrode()) plus chunk-streamedgenerate_ml_dataset()exporting paired 3-D volumes and ground-truth transport labels ($\varepsilon$ , directional$\tau$ , symmetric$3\times 3$ $\mathbf{D}_{\text{eff}}$ , and SSA) to.npz,.h5/.hdf5, and.zarr. -
CLI & Standalone HPC Script:
openimpala generate-datasetsubcommand and MPI-awareexamples/generate_ml_dataset.py.
Multi-Component Periodic Homogenisation, Documentation & Runtime Hardening (#305, #306)
-
Exact Multi-Component Periodic Homogenisation (#305): Pins one reference cell per connected component across MPI boxes and CUDA kernels in
EffectiveDiffusivityHypre(and_solver.py), eliminating near-singular modes when isolated pore pockets coexist with percolating networks. -
Six Executable Colab Tutorials & Sphinx Overhaul (#305, #306): Pre-executed notebooks (
01–06) covering steady-state diffusion, Cauchy–Crofton stereology,$3\times 3$ periodic homogenisation, multi-phase composite transport, REV uncertainty, and OME-Zarr /ytvisualisation. -
Login-Node / Colab Safety, Typing & Wheel Verification (#306): Guarded
cudaGetDeviceCountbeforeamrex::Initialize()soopenimpala-cudafalls back cleanly withoutSIGABRTon GPU-less nodes, addedOPENIMPALA_BACKEND=auto|cpp|pureandcore_load_errordiagnostics inoi.build_info(), shipped PEP 561py.typed, wired Wiener / Hashin–Shtrikman V&V checks into CI, and added automated pre-publish wheel smoke tests.
Merged Pull Requests
- #305 —
feat: multi-component periodic homogenisation, datasets module, Colab tutorials & docs overhaul - #306 —
feat(v4.7.0): OME-Zarr I/O, Otsu, downsampling, yt plotfiles, ML generator & JOSS 2026 prep
What's Changed
- Overhaul tutorials & Sphinx docs, fix periodic homogenisation FV stencil, and add CITATION.cff by @jameslehoux in #305
- feat(v4.7.0): Otsu thresholding, OME-Zarr I/O, yt plotfiles, dataset registry, ML generator & JOSS prep by @jameslehoux in #306
Full Changelog: v4.6.0...v4.7.0