bijective-gamut 2.3.0__tar.gz → 2.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/CHANGELOG.md +56 -4
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/CITATION.cff +2 -2
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/CMakeLists.txt +2 -2
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/CONTRIBUTING.md +4 -4
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/PKG-INFO +3 -4
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/README.md +2 -2
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/SPEC.md +13 -13
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/include/gamut/gamut.h +8 -3
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/licenses/hdf5.txt +69 -64
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/pyproject.toml +1 -1
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_models.py +1 -1
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_study.py +3 -3
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_docs.py +4 -4
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/Cargo.toml +1 -1
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut/Cargo.toml +1 -1
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut/src/lib.rs +1 -1
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/capi.cpp +9 -3
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/chunks.cpp +13 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/h5.cpp +112 -25
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/h5.hpp +31 -4
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/writer.cpp +61 -7
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/writer.hpp +15 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/tests/writer_reader_tests.cpp +250 -1
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/tools/build_deps.sh +12 -10
- bijective_gamut-2.3.0/licenses/hdf5-lbnl.txt +0 -61
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/.gitignore +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/LICENSE +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/00_readme.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/01_run_table.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/02_one_mesh.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/03_geometry_family.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/04_changing_mesh.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/05_time_series.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/06_uncertainty_gradients.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/07_models.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/08_selecting_parts.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/09_combining_files.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/10_vtk.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/README.md +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/_cylinder.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/c/one_mesh.c +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cli/second_entry.json +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cli/second_entry_runs.csv +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cli/sweep.json +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cli/sweep_runs.csv +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/combining.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/cylinder.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/family.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/nearest.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/one_mesh.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/parts.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/refinement.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/run_table.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/sweep.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/transient.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/uncertain.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/combining.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/cylinder.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/family.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/nearest.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/one_mesh.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/parts.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/refinement.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/run_table.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/sweep.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/transient.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/uncertain.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/exports.map +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/exports.txt +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/include/gamut/gamut.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/licenses/zlib.txt +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/llms.txt +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/mkdocs.yml +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/overrides/partials/logo.html +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/__init__.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/__main__.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_files.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_lib.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_notice.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_units.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_validate.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/cli.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/vtk.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/_pages.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_append_many.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_append_sessions.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_arrays.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_binding.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_cli.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_edges.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_examples.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_existing_destinations.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_files.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_guide_cli.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_guide_languages.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_layouts.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_models.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_readme.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_validate.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_vtk.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/.gitignore +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut/build.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut/tests/corpus.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut/tests/study.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut-sys/Cargo.toml +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut-sys/build.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut-sys/generate.py +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut-sys/src/lib.rs +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/chunk.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/chunk.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/codec.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/codec.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/copy.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/copy.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/evaluate.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/evaluate.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/names.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/names.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/nearest.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/nearest.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/notice.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/notice.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/reader.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/reader.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/schema.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/schema.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/select.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/select.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/session.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/session.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/sha256.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/sha256.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/types.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/types.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/units.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/units.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/validate.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/validate.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/value.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/value.hpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/tests/header_tests.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/tests/unit_tests.cpp +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/tools/build_core.sh +0 -0
- {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/tools/damaged_files.py +0 -0
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.3.2 (2026-11-26)
|
|
4
|
+
|
|
5
|
+
The file format (`gamut/1`) and the C interface are unchanged.
|
|
6
|
+
|
|
7
|
+
- A write that the disk has no room for no longer crashes the process
|
|
8
|
+
(#175). `close()` raised its error and the process then died with SIGSEGV
|
|
9
|
+
while the file's HDF5 ids were released. Each id is now closed with the
|
|
10
|
+
close call of its type. When HDF5 cannot close a dataset or flush or
|
|
11
|
+
close the file, adding runs, flushing and closing stop with "cannot write
|
|
12
|
+
the file (no space left on the device?)" and say what became of it: a new
|
|
13
|
+
file is removed, and a file being appended to is unchanged, with the copy
|
|
14
|
+
the runs were written to removed. The writer lets go of the file at
|
|
15
|
+
that point, and every later call on it repeats the error. HDF5 does not
|
|
16
|
+
free a file whose last close failed: the metadata its cache held then
|
|
17
|
+
stays allocated until the process ends, once for each file that fails
|
|
18
|
+
this way. That is about 0.7 MB for a small file and more for a file
|
|
19
|
+
with many objects; HDF5's cache holds up to 32 MB by default.
|
|
20
|
+
- A new file that cannot be written at all (a disk with nothing free) is
|
|
21
|
+
reported as that, with the system's reason or "no space left on the
|
|
22
|
+
device?", and no empty file is left at its path. It was reported as "an
|
|
23
|
+
existing file is never replaced", and the empty file left behind made the
|
|
24
|
+
same create fail again once there was room.
|
|
25
|
+
- A new file that is given up, by `abandon` or because it could not be
|
|
26
|
+
written, is removed at the path it was created at. A file created by a
|
|
27
|
+
relative name was removed relative to the program's current folder at
|
|
28
|
+
that later moment, which could remove another file of the same name. The
|
|
29
|
+
error says so when the file could not be removed.
|
|
30
|
+
|
|
31
|
+
## 2.3.1 (2026-11-26)
|
|
32
|
+
|
|
33
|
+
The file format (`gamut/1`) and the C interface are unchanged.
|
|
34
|
+
|
|
35
|
+
- The packages (the Python wheels, the MATLAB toolbox and the release's
|
|
36
|
+
cores) link HDF5 2.2.0 in place of 1.14.6. It has the fixes for the 27
|
|
37
|
+
security flaws that the HDF Group's CVE list names in 1.14.6, among them
|
|
38
|
+
CVE-2025-2308, CVE-2025-2309, CVE-2025-6269 and CVE-2025-44904. Files are
|
|
39
|
+
written as before, because Gamut sets HDF5's format bounds itself: Gamut
|
|
40
|
+
2.3.0 and other readers on HDF5 1.14 read them, and this release reads
|
|
41
|
+
theirs. Building HDF5 with `tools/build_deps.sh` now needs CMake 3.26 or
|
|
42
|
+
later. `licenses/hdf5.txt` is HDF5 2.2.0's licence, which carries the
|
|
43
|
+
Lawrence Berkeley and Lawrence Livermore notices itself, so
|
|
44
|
+
`licenses/hdf5-lbnl.txt` is gone.
|
|
45
|
+
- Julia: GamutFile is not yet in Julia's General registry, as the 2.3.0
|
|
46
|
+
notes said it would be. Add it from the release's tag:
|
|
47
|
+
`Pkg.add(url="https://github.com/bijective-systems-org/gamut", subdir="julia", rev="v2.3.1")`.
|
|
48
|
+
- The core builds and runs against HDF5 2 as well as 1.14 (HDF5 2 reads a
|
|
49
|
+
stored chunk with `H5Dread_chunk2`; a chunk whose stored size differs from
|
|
50
|
+
its index is E23).
|
|
51
|
+
- HDF5's own error printing stays off on every thread that calls the core,
|
|
52
|
+
not only the one that loaded it, so a thread-safe HDF5 (such as Julia's
|
|
53
|
+
`HDF5_jll`) prints nothing when a call fails.
|
|
54
|
+
|
|
3
55
|
## 2.3.0 (2026-11-18)
|
|
4
56
|
|
|
5
57
|
The file format (`gamut/1`) is unchanged: arrays are an addition within
|
|
@@ -96,8 +148,8 @@ The file format (`gamut/1`) is unchanged; the C interface only adds calls.
|
|
|
96
148
|
`gamut info` shows the marking as that
|
|
97
149
|
block in its output, where it printed the raw text before.
|
|
98
150
|
- A root text attribute holds at most what HDF5 writes in a header that
|
|
99
|
-
opens again:
|
|
100
|
-
`license` and `source`;
|
|
151
|
+
opens again: 65504 bytes less its name padded to 8 (65496 for `title`,
|
|
152
|
+
`license` and `source`; 65488 for `references`, `portion_marking`,
|
|
101
153
|
`evaluated_from` and `trained_on`), refused before anything is written.
|
|
102
154
|
HDF5 1.14.6 accepted a few bytes more and wrote a root it could not open
|
|
103
155
|
again. A stated marking for `append`, or for `gamut append` with a
|
|
@@ -132,7 +184,7 @@ move from `gamut-format`, uninstall it, then install `bijective-gamut`
|
|
|
132
184
|
`bijective-gamut-sys`, the declarations of `gamut.h` that
|
|
133
185
|
`rust/gamut-sys/generate.py` writes from it. It writes and reads
|
|
134
186
|
data files with the calls of the other languages, evaluates model files
|
|
135
|
-
whose models are the built-in nearest
|
|
187
|
+
whose models are the built-in nearest neighbor, and is held to the
|
|
136
188
|
corpus. Every example has a Rust tab, and the reference a Rust page.
|
|
137
189
|
The crates are added from this repository's release tag (not yet from
|
|
138
190
|
crates.io).
|
|
@@ -428,7 +480,7 @@ MATLAB installs from a toolbox, `Gamut.mltbx`, attached to each release:
|
|
|
428
480
|
MATLAB R2023b or later on Linux, Windows or an Apple silicon Mac, and no
|
|
429
481
|
compiler. Each release also carries the core on its own for each platform
|
|
430
482
|
(`gamut-core-<version>-<platform>`, with its headers and CMake package) for
|
|
431
|
-
Julia, C and C++. Every package now includes the
|
|
483
|
+
Julia, C and C++. Every package now includes the licenses of HDF5 and zlib,
|
|
432
484
|
which the core links in.
|
|
433
485
|
|
|
434
486
|
Evaluating a damaged model file is refused in every language when the file
|
|
@@ -5,8 +5,8 @@ message: >-
|
|
|
5
5
|
`format`, for example "gamut/1").
|
|
6
6
|
title: "Gamut: an open file format for simulation studies"
|
|
7
7
|
type: software
|
|
8
|
-
version: 2.3.
|
|
9
|
-
date-released: 2026-11-
|
|
8
|
+
version: 2.3.2
|
|
9
|
+
date-released: 2026-11-26
|
|
10
10
|
authors:
|
|
11
11
|
- name: "Bijective Systems"
|
|
12
12
|
repository-code: "https://github.com/bijective-systems-org/gamut"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
cmake_minimum_required(VERSION 3.16)
|
|
2
|
-
project(gamut VERSION 2.3.
|
|
2
|
+
project(gamut VERSION 2.3.2 LANGUAGES C CXX)
|
|
3
3
|
|
|
4
4
|
# The shared core of spec version 1: one C++ library behind a plain C
|
|
5
5
|
# interface (include/gamut/gamut.h). Python, MATLAB and Julia bind to
|
|
@@ -49,7 +49,7 @@ endif()
|
|
|
49
49
|
|
|
50
50
|
find_package(HDF5 REQUIRED COMPONENTS C HL)
|
|
51
51
|
# 1.14 brought H5Dchunk_iter, which the core's chunk index pass uses;
|
|
52
|
-
# packages bundle
|
|
52
|
+
# packages bundle 2.2.0.
|
|
53
53
|
if(HDF5_VERSION AND HDF5_VERSION VERSION_LESS 1.14)
|
|
54
54
|
message(FATAL_ERROR "the Gamut core needs HDF5 1.14 or later; found ${HDF5_VERSION}. "
|
|
55
55
|
"Point HDF5_ROOT at a newer HDF5.")
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The [specification](SPEC.md) and the [corpus](corpus) define Gamut. The
|
|
4
4
|
C++ core in `src/` implements them once; Python, MATLAB, Julia, Rust and
|
|
5
|
-
the C++ header are thin layers over its C interface. A change of
|
|
5
|
+
the C++ header are thin layers over its C interface. A change of behavior starts from the
|
|
6
6
|
specification and the corpus, never from one language.
|
|
7
7
|
|
|
8
8
|
## A bug
|
|
@@ -30,8 +30,8 @@ The specification, the corpus and the core change together.
|
|
|
30
30
|
## Building and running the checks
|
|
31
31
|
|
|
32
32
|
The core needs CMake 3.16 or later, a C++17 compiler and HDF5 1.14 or
|
|
33
|
-
later (or `tools/build_deps.sh
|
|
34
|
-
[installing](docs/install.md)). From the top of a checkout:
|
|
33
|
+
later (or `tools/build_deps.sh`, which needs CMake 3.26 or later, and
|
|
34
|
+
`-DGAMUT_STATIC_HDF5=ON`, as in [installing](docs/install.md)). From the top of a checkout:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
37
|
cmake -S . -B build -DHDF5_ROOT=/path/to/hdf5
|
|
@@ -82,7 +82,7 @@ example `examples/julia/nearest.jl` runs in such a folder too.
|
|
|
82
82
|
toolbox, and `tests/check_toolbox.m` installs it in a clean session and
|
|
83
83
|
runs an example with it. `bash tools/build_core.sh PREFIX DEPS` installs
|
|
84
84
|
the core as a release carries it, with its headers, CMake package and
|
|
85
|
-
|
|
85
|
+
licenses.
|
|
86
86
|
|
|
87
87
|
`tools/damaged_files.py` measures how readers meet damaged files, and
|
|
88
88
|
`bench/` holds the benchmarks (`bench/figures.py` rebuilds the benchmark
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bijective-gamut
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.2
|
|
4
4
|
Summary: Gamut by Bijective Systems: an open file format for parametric simulation studies and fitted models
|
|
5
5
|
Keywords: simulation,parametric study,design of experiments,CFD,FEA,HDF5,netCDF,xarray,surrogate model,reduced-order model,machine learning,dataset,MATLAB,Julia
|
|
6
6
|
Author: Bijective Systems
|
|
7
7
|
License-Expression: Apache-2.0
|
|
8
8
|
License-File: LICENSE
|
|
9
|
-
License-File: licenses/hdf5-lbnl.txt
|
|
10
9
|
License-File: licenses/hdf5.txt
|
|
11
10
|
License-File: licenses/zlib.txt
|
|
12
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -147,9 +146,9 @@ another approach is faster.
|
|
|
147
146
|
|---|---|
|
|
148
147
|
| Python 3.11 or later | `pip install bijective-gamut` |
|
|
149
148
|
| MATLAB R2023b or later | open `Gamut.mltbx` from the [latest release](https://github.com/bijective-systems-org/gamut/releases/latest) |
|
|
150
|
-
| Julia 1.10 or later | `Pkg.add(
|
|
149
|
+
| Julia 1.10 or later | `Pkg.add(url="https://github.com/bijective-systems-org/gamut", subdir="julia", rev="v2.3.2")` |
|
|
151
150
|
| C++ and C | CMake build and install, then `find_package(gamut)`; include `gamut/gamut.hpp` (C++17) or `gamut/gamut.h` (C) |
|
|
152
|
-
| Rust 1.70 or later | `bijective-gamut = { git = "https://github.com/bijective-systems-org/gamut", tag = "v2.3.
|
|
151
|
+
| Rust 1.70 or later | `bijective-gamut = { git = "https://github.com/bijective-systems-org/gamut", tag = "v2.3.2" }`, with `GAMUT_LIB_DIR` at a release's core |
|
|
153
152
|
|
|
154
153
|
In Python, install `bijective-gamut`, then `import gamut`; the PyPI project
|
|
155
154
|
named `gamut` is a different package. [Installing](https://bijective-systems-org.github.io/gamut/install.html) has
|
|
@@ -102,9 +102,9 @@ another approach is faster.
|
|
|
102
102
|
|---|---|
|
|
103
103
|
| Python 3.11 or later | `pip install bijective-gamut` |
|
|
104
104
|
| MATLAB R2023b or later | open `Gamut.mltbx` from the [latest release](https://github.com/bijective-systems-org/gamut/releases/latest) |
|
|
105
|
-
| Julia 1.10 or later | `Pkg.add(
|
|
105
|
+
| Julia 1.10 or later | `Pkg.add(url="https://github.com/bijective-systems-org/gamut", subdir="julia", rev="v2.3.2")` |
|
|
106
106
|
| C++ and C | CMake build and install, then `find_package(gamut)`; include `gamut/gamut.hpp` (C++17) or `gamut/gamut.h` (C) |
|
|
107
|
-
| Rust 1.70 or later | `bijective-gamut = { git = "https://github.com/bijective-systems-org/gamut", tag = "v2.3.
|
|
107
|
+
| Rust 1.70 or later | `bijective-gamut = { git = "https://github.com/bijective-systems-org/gamut", tag = "v2.3.2" }`, with `GAMUT_LIB_DIR` at a release's core |
|
|
108
108
|
|
|
109
109
|
In Python, install `bijective-gamut`, then `import gamut`; the PyPI project
|
|
110
110
|
named `gamut` is a different package. [Installing](https://bijective-systems-org.github.io/gamut/install.html) has
|
|
@@ -118,7 +118,7 @@ At most one `status` label. Any number of the others. A yes/no value is a
|
|
|
118
118
|
`categorical` label whose table is `false`, `true` (codes 0 and 1); a
|
|
119
119
|
library accepts booleans and writes that table itself.
|
|
120
120
|
|
|
121
|
-
**Unit of
|
|
121
|
+
**Unit of generalization.** The root may name one group label in
|
|
122
122
|
`generalisation_group`: the group a fair test holds out whole, such as the
|
|
123
123
|
geometry of a family. A published split that places rows of one such group,
|
|
124
124
|
or of one run (`run_group`), on both sides is reported (W1).
|
|
@@ -280,7 +280,7 @@ another result with a descriptive name.
|
|
|
280
280
|
| `statistic` | Means | Also |
|
|
281
281
|
|---|---|---|
|
|
282
282
|
| `std` | the standard deviation of `of`: a measured spread (an unsteady run's fluctuation, repeated tests, a Gaussian model's sigma) | never negative (W10) |
|
|
283
|
-
| `quantile` | the value of `of` at percentile `q`: `q = 0.05` is the value 5
|
|
283
|
+
| `quantile` | the value of `of` at percentile `q`: `q = 0.05` is the value 5% of outcomes fall below | `q` in (0, 1); a symmetric interval is two quantiles |
|
|
284
284
|
|
|
285
285
|
Either may carry `method`: one line on how it was obtained. Its units
|
|
286
286
|
string equals that of `of`.
|
|
@@ -333,7 +333,7 @@ standardizes the interface, never the internals: only the software that
|
|
|
333
333
|
owns the type interprets the numbers. A file never holds executable code.
|
|
334
334
|
|
|
335
335
|
Licensing is not part of the format or its libraries. Running a model needs
|
|
336
|
-
its owning software and whatever
|
|
336
|
+
its owning software and whatever license that software requires; a model
|
|
337
337
|
of a user's own type runs with the user's registered code; the built-in
|
|
338
338
|
`nearest` runs everywhere.
|
|
339
339
|
|
|
@@ -379,7 +379,7 @@ when a model reads them, as n × nodes × axes in the coordinates' units.
|
|
|
379
379
|
The data file's rows get ids 0 to n − 1. A label's codes are the model
|
|
380
380
|
file's.
|
|
381
381
|
|
|
382
|
-
### 7.5 The built-in model: nearest
|
|
382
|
+
### 7.5 The built-in model: nearest neighbor
|
|
383
383
|
|
|
384
384
|
Type `nearest` returns, for each input row, the outputs of the closest
|
|
385
385
|
stored point. It exists so that model files can be tested in every
|
|
@@ -420,7 +420,7 @@ random UUID, lower-case, written once when the file is created), and may
|
|
|
420
420
|
carry `title`, `license` (an SPDX identifier or a URL), `references` (a
|
|
421
421
|
citation or DOI) and `source` (the program that produced the data), with
|
|
422
422
|
the meanings the Attribute Convention for Data Discovery gives them, so
|
|
423
|
-
that dataset
|
|
423
|
+
that dataset catalogs can read them. `/notes` holds any other free-form
|
|
424
424
|
public attributes; nothing depends on them. `/private` holds a producer's
|
|
425
425
|
own records in any form; readers copy it and never interpret it. Public
|
|
426
426
|
information is never only in `/notes` or `/private`.
|
|
@@ -437,9 +437,9 @@ rewrapped.
|
|
|
437
437
|
|
|
438
438
|
A root text attribute that a writer sets (`title`, `license`,
|
|
439
439
|
`references`, `source`, `portion_marking`, `trained_on`,
|
|
440
|
-
`evaluated_from`) holds at most
|
|
440
|
+
`evaluated_from`) holds at most 65504 bytes of UTF-8 less the room its
|
|
441
441
|
name takes, the name and its terminating NUL rounded up to a multiple of
|
|
442
|
-
8 bytes:
|
|
442
|
+
8 bytes: 65496 bytes for `title`, `license` and `source`, and 65488 for
|
|
443
443
|
`references`, `portion_marking`, `trained_on` and `evaluated_from`. HDF5
|
|
444
444
|
keeps the attribute in the root's object header as one message of at
|
|
445
445
|
most 64 KiB; HDF5 1.14.6 writes a slightly longer value as a root that
|
|
@@ -726,7 +726,7 @@ A writer chunks every dataset with a dimension that may grow (`row`,
|
|
|
726
726
|
lists as unlimited) and makes that dimension unlimited; any dataset with an
|
|
727
727
|
unlimited dimension is chunked (E20). A file whose growable dimensions are
|
|
728
728
|
fixed instead is valid and read-only (§11.5). Larger fixed datasets may be
|
|
729
|
-
chunked too, to be compressed. With T =
|
|
729
|
+
chunked too, to be compressed. With T = 262144 bytes and b the bytes of one entry along
|
|
730
730
|
the first axis (dtype size times the other extents):
|
|
731
731
|
|
|
732
732
|
- **Leading axis grows** (root datasets, arrays among them; category tables; shared-mesh
|
|
@@ -747,9 +747,9 @@ A writer creates files with HDF5's persistent free-space management
|
|
|
747
747
|
(strategy `FSM_AGGR`, persisting, threshold 1) and library version bounds
|
|
748
748
|
from the earliest to 1.10, which that needs. A compressed chunk rewritten
|
|
749
749
|
larger leaves its old space free, and without tracking that space is lost
|
|
750
|
-
when the file closes. Measured (20 float64 columns,
|
|
750
|
+
when the file closes. Measured (20 float64 columns, 3000 appends of one
|
|
751
751
|
row, the file reopened for each): 32 MB without, 0.49 MB with, the size of
|
|
752
|
-
the data; chunks of
|
|
752
|
+
the data; chunks of 32768 entries without it reached 196 MB. Readers need
|
|
753
753
|
HDF5 1.10 or later; netCDF4, xarray and MATLAB R2026a (HDF5 1.14.4) read
|
|
754
754
|
such files. Writers also buffer appends to whole chunks within a session.
|
|
755
755
|
|
|
@@ -942,7 +942,7 @@ Errors make a file invalid; warnings are reported and the file is accepted.
|
|
|
942
942
|
|
|
943
943
|
| Rule | Finding |
|
|
944
944
|
|---|---|
|
|
945
|
-
| W1 | a published split that places rows of one
|
|
945
|
+
| W1 | a published split that places rows of one generalization group, or of one run, on both sides |
|
|
946
946
|
| W2 | rows whose status is not `converged`, by row |
|
|
947
947
|
| W3 | NaN or infinite values in a result, by row and name |
|
|
948
948
|
| W4 | a parameter's or an array's value outside its bounds (and, on evaluation, an input outside a model's domain) |
|
|
@@ -952,7 +952,7 @@ Errors make a file invalid; warnings are reported and the file is accepted.
|
|
|
952
952
|
| W8 | `created` not an ISO 8601 UTC timestamp |
|
|
953
953
|
| W9 | two rows of one run at the same time (decidable with `run_group`) |
|
|
954
954
|
| W10 | a negative `std` |
|
|
955
|
-
| W11 | an array whose values were not checked because it holds more than 2²⁶ (
|
|
955
|
+
| W11 | an array whose values were not checked because it holds more than 2²⁶ (67108864) values, the reference validator's limit |
|
|
956
956
|
|
|
957
957
|
## 17. Versions and additions
|
|
958
958
|
|
|
@@ -1032,7 +1032,7 @@ Each of these is the simpler of the choices considered.
|
|
|
1032
1032
|
13. **Constants may be int64** as well as floating point.
|
|
1033
1033
|
14. **Persistent free-space management and a 512-entry cap on leading
|
|
1034
1034
|
chunks**, so a file appended one run at a time, even reopened each
|
|
1035
|
-
time, stays the size of its data (measured: 20 columns and
|
|
1035
|
+
time, stays the size of its data (measured: 20 columns and 3000
|
|
1036
1036
|
single-row appends, each reopening the file, give 0.49 MB, against
|
|
1037
1037
|
32 MB without).
|
|
1038
1038
|
15. **An array is its own kind of input, with its own role words.** A
|
|
@@ -63,7 +63,7 @@ typedef struct {
|
|
|
63
63
|
int64_t count;
|
|
64
64
|
} gamut_sel;
|
|
65
65
|
|
|
66
|
-
/* The library's version ("2.3.
|
|
66
|
+
/* The library's version ("2.3.2") and the format string it writes
|
|
67
67
|
* ("gamut/1"). Static strings; never freed. */
|
|
68
68
|
GAMUT_API const char* gamut_version(void);
|
|
69
69
|
GAMUT_API const char* gamut_format(void);
|
|
@@ -182,7 +182,12 @@ GAMUT_API int gamut_set_private(gamut_file* f, const char* name, const void* byt
|
|
|
182
182
|
/* Closes a file opened by any call and frees the handle; writes what a
|
|
183
183
|
* writer holds. f may be NULL. When a writer's close is refused (a model
|
|
184
184
|
* file without a model, a shared mesh never set) the handle stays open:
|
|
185
|
-
* fix what the error names and close again, or gamut_abandon.
|
|
185
|
+
* fix what the error names and close again, or gamut_abandon. When the
|
|
186
|
+
* file cannot be written out (no space left on the device), adding rows,
|
|
187
|
+
* flushing and closing fail and the file is given up: a new file is
|
|
188
|
+
* removed at the path it was created at (the error says so if it could
|
|
189
|
+
* not be), a file being appended to is unchanged. The handle is then
|
|
190
|
+
* good only for gamut_abandon. */
|
|
186
191
|
GAMUT_API int gamut_close(gamut_file* f, gamut_error* err);
|
|
187
192
|
/* Gives up on a file and frees the handle without finishing it: nothing
|
|
188
193
|
* more is written. remove_file (non-zero) deletes a file this handle
|
|
@@ -319,7 +324,7 @@ GAMUT_API int gamut_add_model(gamut_file* f, const char* id, const char* type,
|
|
|
319
324
|
* gamut_describe(f, "models/<id>"); its numbers from here. */
|
|
320
325
|
GAMUT_API int gamut_model_numbers(const gamut_file* f, const char* id, gamut_tree** out, gamut_error* err);
|
|
321
326
|
|
|
322
|
-
/* The built-in nearest-
|
|
327
|
+
/* The built-in nearest-neighbor model (spec section 7.5), so every
|
|
323
328
|
* binding gets the same answers. */
|
|
324
329
|
GAMUT_API int gamut_nearest_check(const gamut_tree* numbers, gamut_error* err);
|
|
325
330
|
GAMUT_API int gamut_nearest_output_size(const gamut_tree* numbers, const char* output,
|
|
@@ -1,106 +1,111 @@
|
|
|
1
|
-
Copyright Notice and License Terms for
|
|
1
|
+
Copyright Notice and License Terms for
|
|
2
2
|
HDF5 (Hierarchical Data Format 5) Software Library and Utilities
|
|
3
3
|
-----------------------------------------------------------------------------
|
|
4
4
|
|
|
5
5
|
HDF5 (Hierarchical Data Format 5) Software Library and Utilities
|
|
6
|
-
Copyright 2006 by The HDF Group.
|
|
6
|
+
Copyright 2006 by The HDF Group.
|
|
7
7
|
|
|
8
8
|
NCSA HDF5 (Hierarchical Data Format 5) Software Library and Utilities
|
|
9
|
-
Copyright 1998-2006 by The Board of Trustees of the University of Illinois.
|
|
9
|
+
Copyright 1998-2006 by The Board of Trustees of the University of Illinois.
|
|
10
10
|
|
|
11
11
|
All rights reserved.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
This software library and utilities is covered by the 3-clause BSD License.
|
|
14
|
+
|
|
15
|
+
Redistribution and use in source and binary forms, with or without
|
|
16
|
+
modification, are permitted for any purpose (including commercial purposes)
|
|
15
17
|
provided that the following conditions are met:
|
|
16
18
|
|
|
17
|
-
1. Redistributions of source code must retain the above copyright notice,
|
|
19
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
18
20
|
this list of conditions, and the following disclaimer.
|
|
19
21
|
|
|
20
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
21
|
-
this list of conditions, and the following disclaimer in the documentation
|
|
22
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
23
|
+
this list of conditions, and the following disclaimer in the documentation
|
|
22
24
|
and/or materials provided with the distribution.
|
|
23
25
|
|
|
24
|
-
3. Neither the name of The HDF Group, the name of the University, nor the
|
|
25
|
-
name of any Contributor may be used to endorse or promote products derived
|
|
26
|
-
from this software without specific prior written permission from
|
|
26
|
+
3. Neither the name of The HDF Group, the name of the University, nor the
|
|
27
|
+
name of any Contributor may be used to endorse or promote products derived
|
|
28
|
+
from this software without specific prior written permission from
|
|
27
29
|
The HDF Group, the University, or the Contributor, respectively.
|
|
28
30
|
|
|
29
|
-
DISCLAIMER:
|
|
30
|
-
THIS SOFTWARE IS PROVIDED BY THE
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
DISCLAIMER:
|
|
32
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
33
|
+
“AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
34
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
35
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
36
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
37
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
38
|
+
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
39
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
|
40
|
+
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
41
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
42
|
+
|
|
43
|
+
For further details, please refer to the full license text available
|
|
44
|
+
at https://opensource.org/licenses/bsd-3-clause
|
|
45
|
+
|
|
46
|
+
You are under no obligation whatsoever to provide any bug fixes, patches, or
|
|
47
|
+
upgrades to the features, functionality or performance of the source code
|
|
48
|
+
("Enhancements") to anyone; however, if you choose to make your Enhancements
|
|
49
|
+
available either publicly, or directly to The HDF Group, without imposing a
|
|
50
|
+
separate written license agreement for such Enhancements, then you hereby
|
|
51
|
+
grant the following license: a non-exclusive, royalty-free perpetual license
|
|
52
|
+
to install, use, modify, prepare derivative works, incorporate into other
|
|
53
|
+
computer software, distribute, and sublicense such enhancements or derivative
|
|
44
54
|
works thereof, in binary and source code form.
|
|
45
55
|
|
|
46
56
|
-----------------------------------------------------------------------------
|
|
47
57
|
-----------------------------------------------------------------------------
|
|
48
58
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
https://raw.githubusercontent.com/hdfgroup/hdf5/hdf5_1_14/COPYING_LBNL_HDF5.
|
|
53
|
-
|
|
54
|
-
-----------------------------------------------------------------------------
|
|
55
|
-
-----------------------------------------------------------------------------
|
|
56
|
-
|
|
57
|
-
Contributors: National Center for Supercomputing Applications (NCSA) at
|
|
58
|
-
the University of Illinois, Fortner Software, Unidata Program Center
|
|
59
|
-
(netCDF), The Independent JPEG Group (JPEG), Jean-loup Gailly and Mark Adler
|
|
59
|
+
Contributors: National Center for Supercomputing Applications (NCSA) at
|
|
60
|
+
the University of Illinois, Fortner Software, Unidata Program Center
|
|
61
|
+
(netCDF), The Independent JPEG Group (JPEG), Jean-loup Gailly and Mark Adler
|
|
60
62
|
(gzip), and Digital Equipment Corporation (DEC).
|
|
61
63
|
|
|
62
64
|
-----------------------------------------------------------------------------
|
|
63
|
-
|
|
64
|
-
Portions of HDF5 were developed with support from the Lawrence Berkeley
|
|
65
|
-
National Laboratory (LBNL) and the United States Department of Energy
|
|
65
|
+
|
|
66
|
+
Portions of HDF5 were developed with support from the Lawrence Berkeley
|
|
67
|
+
National Laboratory (LBNL) and the United States Department of Energy
|
|
66
68
|
under Prime Contract No. DE-AC02-05CH11231.
|
|
67
69
|
|
|
68
70
|
-----------------------------------------------------------------------------
|
|
69
71
|
|
|
70
|
-
Portions of HDF5 were developed with support from Lawrence Livermore
|
|
71
|
-
National Laboratory and the United States Department of Energy under
|
|
72
|
+
Portions of HDF5 were developed with support from Lawrence Livermore
|
|
73
|
+
National Laboratory and the United States Department of Energy under
|
|
72
74
|
Prime Contract No. DE-AC52-07NA27344.
|
|
73
75
|
|
|
74
76
|
-----------------------------------------------------------------------------
|
|
75
77
|
|
|
76
|
-
Portions of HDF5 were developed with support from the University of
|
|
77
|
-
California, Lawrence Livermore National Laboratory (UC LLNL).
|
|
78
|
-
The following statement applies to those portions of the product and must
|
|
79
|
-
be retained in any redistribution of source code, binaries, documentation,
|
|
78
|
+
Portions of HDF5 were developed with support from the University of
|
|
79
|
+
California, Lawrence Livermore National Laboratory (UC LLNL).
|
|
80
|
+
The following statement applies to those portions of the product and must
|
|
81
|
+
be retained in any redistribution of source code, binaries, documentation,
|
|
80
82
|
and/or accompanying materials:
|
|
81
83
|
|
|
82
|
-
This work was partially produced at the University of California,
|
|
83
|
-
Lawrence Livermore National Laboratory (UC LLNL) under contract
|
|
84
|
-
no. W-7405-ENG-48 (Contract 48) between the U.S. Department of Energy
|
|
85
|
-
(DOE) and The Regents of the University of California (University)
|
|
84
|
+
This work was partially produced at the University of California,
|
|
85
|
+
Lawrence Livermore National Laboratory (UC LLNL) under contract
|
|
86
|
+
no. W-7405-ENG-48 (Contract 48) between the U.S. Department of Energy
|
|
87
|
+
(DOE) and The Regents of the University of California (University)
|
|
86
88
|
for the operation of UC LLNL.
|
|
87
89
|
|
|
88
|
-
DISCLAIMER:
|
|
89
|
-
THIS WORK WAS PREPARED AS AN ACCOUNT OF WORK SPONSORED BY AN AGENCY OF
|
|
90
|
-
THE UNITED STATES GOVERNMENT. NEITHER THE UNITED STATES GOVERNMENT NOR
|
|
91
|
-
THE UNIVERSITY OF CALIFORNIA NOR ANY OF THEIR EMPLOYEES, MAKES ANY
|
|
92
|
-
WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LIABILITY OR RESPONSIBILITY
|
|
93
|
-
FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF ANY INFORMATION,
|
|
94
|
-
APPARATUS, PRODUCT, OR PROCESS DISCLOSED, OR REPRESENTS THAT ITS USE
|
|
95
|
-
WOULD NOT INFRINGE PRIVATELY- OWNED RIGHTS. REFERENCE HEREIN TO ANY
|
|
96
|
-
SPECIFIC COMMERCIAL PRODUCTS, PROCESS, OR SERVICE BY TRADE NAME,
|
|
97
|
-
TRADEMARK, MANUFACTURER, OR OTHERWISE, DOES NOT NECESSARILY CONSTITUTE
|
|
98
|
-
OR IMPLY ITS ENDORSEMENT, RECOMMENDATION, OR FAVORING BY THE UNITED
|
|
99
|
-
STATES GOVERNMENT OR THE UNIVERSITY OF CALIFORNIA. THE VIEWS AND
|
|
100
|
-
OPINIONS OF AUTHORS EXPRESSED HEREIN DO NOT NECESSARILY STATE OR REFLECT
|
|
101
|
-
THOSE OF THE UNITED STATES GOVERNMENT OR THE UNIVERSITY OF CALIFORNIA,
|
|
90
|
+
DISCLAIMER:
|
|
91
|
+
THIS WORK WAS PREPARED AS AN ACCOUNT OF WORK SPONSORED BY AN AGENCY OF
|
|
92
|
+
THE UNITED STATES GOVERNMENT. NEITHER THE UNITED STATES GOVERNMENT NOR
|
|
93
|
+
THE UNIVERSITY OF CALIFORNIA NOR ANY OF THEIR EMPLOYEES, MAKES ANY
|
|
94
|
+
WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LIABILITY OR RESPONSIBILITY
|
|
95
|
+
FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF ANY INFORMATION,
|
|
96
|
+
APPARATUS, PRODUCT, OR PROCESS DISCLOSED, OR REPRESENTS THAT ITS USE
|
|
97
|
+
WOULD NOT INFRINGE PRIVATELY- OWNED RIGHTS. REFERENCE HEREIN TO ANY
|
|
98
|
+
SPECIFIC COMMERCIAL PRODUCTS, PROCESS, OR SERVICE BY TRADE NAME,
|
|
99
|
+
TRADEMARK, MANUFACTURER, OR OTHERWISE, DOES NOT NECESSARILY CONSTITUTE
|
|
100
|
+
OR IMPLY ITS ENDORSEMENT, RECOMMENDATION, OR FAVORING BY THE UNITED
|
|
101
|
+
STATES GOVERNMENT OR THE UNIVERSITY OF CALIFORNIA. THE VIEWS AND
|
|
102
|
+
OPINIONS OF AUTHORS EXPRESSED HEREIN DO NOT NECESSARILY STATE OR REFLECT
|
|
103
|
+
THOSE OF THE UNITED STATES GOVERNMENT OR THE UNIVERSITY OF CALIFORNIA,
|
|
102
104
|
AND SHALL NOT BE USED FOR ADVERTISING OR PRODUCT ENDORSEMENT PURPOSES.
|
|
103
105
|
|
|
104
106
|
-----------------------------------------------------------------------------
|
|
105
107
|
|
|
108
|
+
Portions of HDF5 were developed with support from the National Science
|
|
109
|
+
Foundation under Federal Award No. 2534078.
|
|
106
110
|
|
|
111
|
+
-----------------------------------------------------------------------------
|
|
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "bijective-gamut"
|
|
7
|
-
version = "2.3.
|
|
7
|
+
version = "2.3.2"
|
|
8
8
|
description = "Gamut by Bijective Systems: an open file format for parametric simulation studies and fitted models"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Model files and the plug-in interface (spec section 7, interface
|
|
2
2
|
section 5): model numbers as plain dictionaries, the built-in nearest
|
|
3
|
-
|
|
3
|
+
neighbor, model types registered by their owning software, and evaluation
|
|
4
4
|
driven from Python with the core writing the result."""
|
|
5
5
|
|
|
6
6
|
from __future__ import annotations
|
|
@@ -713,14 +713,14 @@ def create(path: str, *, writer: str, parameters: Mapping[str, Any] | None = Non
|
|
|
713
713
|
- `title`, `license`, `references`, `source`: describe the file.
|
|
714
714
|
- `portion_marking`: a marking the author set, as free text; `evaluate`
|
|
715
715
|
copies it into every answer, `extract` and `write_copy` keep it.
|
|
716
|
-
Each of these five texts holds at most
|
|
717
|
-
(`title`, `license`, `source`) or
|
|
716
|
+
Each of these five texts holds at most 65496 bytes of UTF-8
|
|
717
|
+
(`title`, `license`, `source`) or 65488 (`references`,
|
|
718
718
|
`portion_marking`), the most HDF5 keeps in a file's root (spec
|
|
719
719
|
section 8); a longer one is refused.
|
|
720
720
|
- `precision`, `round_bits`, `compression`: storage; the defaults suit
|
|
721
721
|
most studies.
|
|
722
722
|
|
|
723
|
-
Units use the UDUNITS grammar:
|
|
723
|
+
Units use the UDUNITS grammar: `1`, `degree`, `m s-1`, `W m-2`."""
|
|
724
724
|
axes = _axes(coordinates) # before the file exists: a refusal leaves none
|
|
725
725
|
handle = ctypes.c_void_p()
|
|
726
726
|
call("gamut_create", b(path), b(writer), b(mesh or ""), b(per), ctypes.byref(handle))
|
|
@@ -58,12 +58,12 @@ def test_benchmark_page_matches_its_results():
|
|
|
58
58
|
|
|
59
59
|
@pytest.mark.skipif(not PAGES, reason="the documentation is not beside this test (an installed package)")
|
|
60
60
|
def test_julia_install_names_this_release():
|
|
61
|
-
# The Julia package is added
|
|
62
|
-
#
|
|
63
|
-
# pages name.
|
|
61
|
+
# The Julia package is added from this release's tag, so that its layer
|
|
62
|
+
# matches the wheel's core; each release moves the tag the pages name.
|
|
64
63
|
version = re.search(r'^version = "(.+)"', (ROOT / "julia" / "Project.toml").read_text(), re.M)[1]
|
|
65
64
|
for page in (ROOT / "README.md", ROOT / "docs" / "install.md"):
|
|
66
|
-
adds = set(re.findall(r'Pkg\.add\(
|
|
65
|
+
adds = set(re.findall(r'Pkg\.add\(url="https://github\.com/bijective-systems-org/gamut", subdir="julia", rev="v([^"]+)"\)',
|
|
66
|
+
page.read_text(encoding="utf-8")))
|
|
67
67
|
assert adds == {version}, f"{page.name} adds Julia at {sorted(adds)}, not {version}"
|
|
68
68
|
|
|
69
69
|
|
|
@@ -12,7 +12,7 @@ build = "build.rs"
|
|
|
12
12
|
name = "gamut"
|
|
13
13
|
|
|
14
14
|
[dependencies]
|
|
15
|
-
gamut-sys = { package = "bijective-gamut-sys", path = "../gamut-sys", version = "=2.3.
|
|
15
|
+
gamut-sys = { package = "bijective-gamut-sys", path = "../gamut-sys", version = "=2.3.2" }
|
|
16
16
|
|
|
17
17
|
# The examples of the documentation, one program per page.
|
|
18
18
|
[[example]]
|
|
@@ -1329,7 +1329,7 @@ pub fn evaluate(model_path: &str, inputs: &[(&str, Column)], path: &str) -> Resu
|
|
|
1329
1329
|
Ok((open(path)?, warnings.take()))
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
|
-
/// The library's version ("2.3.
|
|
1332
|
+
/// The library's version ("2.3.2").
|
|
1333
1333
|
pub fn version() -> String {
|
|
1334
1334
|
unsafe { CStr::from_ptr(sys::gamut_version()) }.to_string_lossy().into_owned()
|
|
1335
1335
|
}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
#include "copy.hpp"
|
|
19
19
|
#include "evaluate.hpp"
|
|
20
|
+
#include "h5.hpp"
|
|
20
21
|
#include "names.hpp"
|
|
21
22
|
#include "nearest.hpp"
|
|
22
23
|
#include "notice.hpp"
|
|
@@ -65,10 +66,10 @@ struct gamut_tree {
|
|
|
65
66
|
|
|
66
67
|
namespace {
|
|
67
68
|
|
|
68
|
-
const char kVersion[] = "2.3.
|
|
69
|
+
const char kVersion[] = "2.3.2";
|
|
69
70
|
const char kFormat[] = "gamut/1";
|
|
70
71
|
|
|
71
|
-
// HDF5 keeps process-wide state and
|
|
72
|
+
// HDF5 keeps process-wide state and may be built without its thread-safety
|
|
72
73
|
// option, so two handles are not independent: every call that reaches a
|
|
73
74
|
// file holds this lock, and calls from several threads take turns. Never
|
|
74
75
|
// destroyed, so a handle closed during process exit still finds it.
|
|
@@ -77,7 +78,12 @@ std::recursive_mutex& hdf5_mutex() {
|
|
|
77
78
|
return *m;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
// The lock, taken by every call that reaches HDF5; on the way in it turns
|
|
82
|
+
// off HDF5's error printing on this thread (quiet_hdf5).
|
|
83
|
+
struct Lock {
|
|
84
|
+
explicit Lock(std::recursive_mutex& m) : guard(m) { gamut_core::internal::quiet_hdf5(); }
|
|
85
|
+
std::lock_guard<std::recursive_mutex> guard;
|
|
86
|
+
};
|
|
81
87
|
|
|
82
88
|
void copy_into(char* dst, std::size_t size, const std::string& src) {
|
|
83
89
|
if (size == 0) return;
|