Skip to content

Added DIPH5/HDF5 persistence and static environment generation

Choose a tag to compare

@vrtulka23 vrtulka23 released this 19 Sep 21:46
· 380 commits to main since this release

SciNumTools 0.8.1

SciNumTools 0.8.1 adds persistent, portable DIPL environments and static parameter
export across the supported language interfaces.

Highlights

  • Added DIPH5/HDF5 persistence for evaluated DIP environments.

    • C++: Environment::save() / Environment::load()
    • Python bindings and command API
    • C ABI
    • CLI: snt dip parse --save / --load
  • Added static environment generation for:

    • C++, C, Fortran, Rust, Julia, JSON, and YAML
    • CLI: snt dip parse --generate
    • Python: Environment.generate() and DIPParse.argument_generate()
    • C ABI: snt_dip_environment_generate()
  • Native exports preserve groups, lists, maps, and scalar arrays.

    • C++ exports use C++17 native types and nested std::array for up to 3D arrays.
    • Julia output uses readable, indented tuples and named tuples.

API and documentation

  • Split the C ABI into <snt/c/dip.h> and <snt/c/puq.h>.

  • Standardized DIP C ABI names under snt_dip_*.

  • Renamed generation constants to SNT_DIP_EXPORT_*.

  • Added the DIPH5 specification and expanded C++, C, Python, CLI, persistence, and
    generation documentation.

  • Split environment tests into basic, HDF5 persistence, and generation suites.

Build and packaging

  • Added explicit HDF5 discovery and linking for DIP builds.

  • Improved HDF5 handling in GitHub Actions, PyPI wheel builds, macOS delocation,
    Windows DLL repair, and Linux auditwheel integration.

  • Fixed Windows file-handle cleanup in persistence and generation tests.