Skip to content

v4.7.0

Choose a tag to compare

@jameslehoux jameslehoux released this 19 Nov 14:43
· 5 commits to master since this release
dec2e86

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 via oi.read_zarr_volume(), oi.write_zarr_volume(), VoxelImage.from_zarr(), VoxelImage.to_zarr(), and direct .zarr path support across oi.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 via oi.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 the openimpala CLI.
  • Volume Coarsening / Downsampling (#7): oi.downsample_volume() and VoxelImage.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 & yt Integration (#215): Pass write_plotfile=True to oi.tortuosity(), oi.tortuosity_all(), and oi.effective_diffusivity() (or call oi.write_amrex_plotfile()) across both compiled C++ and pure-Python backends to emit BoxLib HyperCLaw-V1.1 plotfiles loadable directly in yt and 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 .geometry voxel pitches), xarray.DataArray, zarr.Array, or h5py.Dataset objects directly to any high-level solver.

Synthetic Microstructures & ML Surrogate Generator (#225)

  • openimpala.synthetic Module: Reproducible 3-D generators (gaussian_blobs(), overlapping_spheres(), and periodic-EDT multiphase_electrode()) plus chunk-streamed generate_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-dataset subcommand and MPI-aware examples/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 / yt visualisation.
  • Login-Node / Colab Safety, Typing & Wheel Verification (#306): Guarded cudaGetDeviceCount before amrex::Initialize() so openimpala-cuda falls back cleanly without SIGABRT on GPU-less nodes, added OPENIMPALA_BACKEND=auto|cpp|pure and core_load_error diagnostics in oi.build_info(), shipped PEP 561 py.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