Skip to content

feat(layer2): migrate PorousDiff onto basecoat, isolate Layer 4 OpenImpala workflows & fix SI SSA units - #2

Merged
jameslehoux merged 1 commit into
feature/paper-ready-conditionalfrom
feat/basecoat-layer2-migration
Nov 20, 2026
Merged

jameslehoux merged 1 commit into
feature/paper-ready-conditionalfrom
feat/basecoat-layer2-migration

Conversation

@jameslehoux

Copy link
Copy Markdown
Contributor

Summary

Migrates PorousDiff (v0.5.2) onto the 4-layer BASE-Laboratory ecosystem (ECOSYSTEM.md) against feature/paper-ready-conditional (preserving main untouched for Asif Ali's MSc archive):

  • Layer 2 Core (porousdiff/):
    • Adds porousdiff.io (to_basecoat_volume, export_volume_ome_zarr, load_volume_array) delegating calibrated OME-Zarr v0.4 (unit='um', mode-downsampled labels/phase for binary and 3-phase {0: pore, 1: carbon, 2: coating}) and TIFF I/O to basecoat v0.2.0.
    • Adds --export-ome-zarr and calibrated .ome.zarr input support to scripts/evaluation/virtual_compress_scan.py; marks export_openimpala_tiff deprecated in favour of export_volume_ome_zarr.
    • Enforces [tool.basecoat.layers] (layer = 2, zero openimpala / porousdiff_workflows / zarr / numcodecs imports inside porousdiff/) in CI via python -m basecoat.layers.
  • Layer 4 Workflow Isolation (porousdiff_workflows/):
    • Moves coupled OpenImpala + DLS K11 DIAD XRD clamping-pressure (sigma*) orchestration (transport_and_xrd.py, optimization.py) into porousdiff_workflows/.
    • Passes calibrated basecoat.Volume (unit='um') directly to OpenImpala v5.1 via VolumeProtocol (spacing_in('m')), reporting true SI ssa_*_m_inv (m^-1) alongside 1e-6-converted 1/um interfacial keys.
  • Governance: Adds ECOSYSTEM.md and AGENTS.md.

Verification

  • python -m basecoat.layers: 0 banned imports (10 rule(s))
  • ruff check porousdiff porousdiff_workflows scripts tests: all checks passed
  • bash -n slurm/*.slurm: valid
  • pytest -v: 44 passed, 1 skipped (including tests/test_basecoat_layer2_migration.py)

@jameslehoux
jameslehoux merged commit 3ab69f8 into feature/paper-ready-conditional Nov 20, 2026
1 check passed
@jameslehoux
jameslehoux deleted the feat/basecoat-layer2-migration branch November 20, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant