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.
Files changed (144) hide show
  1. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/CHANGELOG.md +56 -4
  2. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/CITATION.cff +2 -2
  3. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/CMakeLists.txt +2 -2
  4. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/CONTRIBUTING.md +4 -4
  5. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/PKG-INFO +3 -4
  6. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/README.md +2 -2
  7. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/SPEC.md +13 -13
  8. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/include/gamut/gamut.h +8 -3
  9. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/licenses/hdf5.txt +69 -64
  10. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/pyproject.toml +1 -1
  11. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_models.py +1 -1
  12. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_study.py +3 -3
  13. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_docs.py +4 -4
  14. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/Cargo.toml +1 -1
  15. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut/Cargo.toml +1 -1
  16. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut/src/lib.rs +1 -1
  17. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/capi.cpp +9 -3
  18. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/chunks.cpp +13 -0
  19. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/h5.cpp +112 -25
  20. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/h5.hpp +31 -4
  21. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/writer.cpp +61 -7
  22. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/writer.hpp +15 -0
  23. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/tests/writer_reader_tests.cpp +250 -1
  24. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/tools/build_deps.sh +12 -10
  25. bijective_gamut-2.3.0/licenses/hdf5-lbnl.txt +0 -61
  26. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/.gitignore +0 -0
  27. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/LICENSE +0 -0
  28. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/00_readme.py +0 -0
  29. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/01_run_table.py +0 -0
  30. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/02_one_mesh.py +0 -0
  31. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/03_geometry_family.py +0 -0
  32. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/04_changing_mesh.py +0 -0
  33. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/05_time_series.py +0 -0
  34. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/06_uncertainty_gradients.py +0 -0
  35. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/07_models.py +0 -0
  36. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/08_selecting_parts.py +0 -0
  37. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/09_combining_files.py +0 -0
  38. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/10_vtk.py +0 -0
  39. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/README.md +0 -0
  40. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/_cylinder.py +0 -0
  41. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/c/one_mesh.c +0 -0
  42. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cli/second_entry.json +0 -0
  43. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cli/second_entry_runs.csv +0 -0
  44. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cli/sweep.json +0 -0
  45. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cli/sweep_runs.csv +0 -0
  46. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/combining.cpp +0 -0
  47. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/cylinder.hpp +0 -0
  48. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/family.cpp +0 -0
  49. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/nearest.cpp +0 -0
  50. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/one_mesh.cpp +0 -0
  51. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/parts.cpp +0 -0
  52. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/refinement.cpp +0 -0
  53. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/run_table.cpp +0 -0
  54. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/sweep.cpp +0 -0
  55. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/transient.cpp +0 -0
  56. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/cpp/uncertain.cpp +0 -0
  57. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/combining.rs +0 -0
  58. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/cylinder.rs +0 -0
  59. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/family.rs +0 -0
  60. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/nearest.rs +0 -0
  61. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/one_mesh.rs +0 -0
  62. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/parts.rs +0 -0
  63. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/refinement.rs +0 -0
  64. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/run_table.rs +0 -0
  65. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/sweep.rs +0 -0
  66. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/transient.rs +0 -0
  67. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/examples/rust/uncertain.rs +0 -0
  68. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/exports.map +0 -0
  69. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/exports.txt +0 -0
  70. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/include/gamut/gamut.hpp +0 -0
  71. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/licenses/zlib.txt +0 -0
  72. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/llms.txt +0 -0
  73. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/mkdocs.yml +0 -0
  74. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/overrides/partials/logo.html +0 -0
  75. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/__init__.py +0 -0
  76. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/__main__.py +0 -0
  77. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_files.py +0 -0
  78. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_lib.py +0 -0
  79. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_notice.py +0 -0
  80. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_units.py +0 -0
  81. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/_validate.py +0 -0
  82. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/cli.py +0 -0
  83. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/gamut/vtk.py +0 -0
  84. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/_pages.py +0 -0
  85. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_append_many.py +0 -0
  86. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_append_sessions.py +0 -0
  87. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_arrays.py +0 -0
  88. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_binding.py +0 -0
  89. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_cli.py +0 -0
  90. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_edges.py +0 -0
  91. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_examples.py +0 -0
  92. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_existing_destinations.py +0 -0
  93. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_files.py +0 -0
  94. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_guide_cli.py +0 -0
  95. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_guide_languages.py +0 -0
  96. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_layouts.py +0 -0
  97. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_models.py +0 -0
  98. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_readme.py +0 -0
  99. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_validate.py +0 -0
  100. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/python/tests/test_vtk.py +0 -0
  101. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/.gitignore +0 -0
  102. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut/build.rs +0 -0
  103. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut/tests/corpus.rs +0 -0
  104. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut/tests/study.rs +0 -0
  105. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut-sys/Cargo.toml +0 -0
  106. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut-sys/build.rs +0 -0
  107. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut-sys/generate.py +0 -0
  108. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/rust/gamut-sys/src/lib.rs +0 -0
  109. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/chunk.cpp +0 -0
  110. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/chunk.hpp +0 -0
  111. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/codec.cpp +0 -0
  112. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/codec.hpp +0 -0
  113. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/copy.cpp +0 -0
  114. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/copy.hpp +0 -0
  115. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/evaluate.cpp +0 -0
  116. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/evaluate.hpp +0 -0
  117. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/names.cpp +0 -0
  118. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/names.hpp +0 -0
  119. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/nearest.cpp +0 -0
  120. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/nearest.hpp +0 -0
  121. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/notice.cpp +0 -0
  122. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/notice.hpp +0 -0
  123. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/reader.cpp +0 -0
  124. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/reader.hpp +0 -0
  125. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/schema.cpp +0 -0
  126. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/schema.hpp +0 -0
  127. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/select.cpp +0 -0
  128. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/select.hpp +0 -0
  129. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/session.cpp +0 -0
  130. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/session.hpp +0 -0
  131. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/sha256.cpp +0 -0
  132. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/sha256.hpp +0 -0
  133. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/types.cpp +0 -0
  134. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/types.hpp +0 -0
  135. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/units.cpp +0 -0
  136. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/units.hpp +0 -0
  137. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/validate.cpp +0 -0
  138. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/validate.hpp +0 -0
  139. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/value.cpp +0 -0
  140. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/src/value.hpp +0 -0
  141. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/tests/header_tests.cpp +0 -0
  142. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/tests/unit_tests.cpp +0 -0
  143. {bijective_gamut-2.3.0 → bijective_gamut-2.3.2}/tools/build_core.sh +0 -0
  144. {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: 65,504 bytes less its name padded to 8 (65,496 for `title`,
100
- `license` and `source`; 65,488 for `references`, `portion_marking`,
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 neighbour, and is held to the
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 licences of HDF5 and zlib,
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.0
9
- date-released: 2026-11-18
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.0 LANGUAGES C CXX)
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 1.14.
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 behaviour starts from the
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` and `-DGAMUT_STATIC_HDF5=ON`, as in
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
- licences.
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.0
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(name="GamutFile", version="2.3.0")` |
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.0" }`, with `GAMUT_LIB_DIR` at a release's core |
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(name="GamutFile", version="2.3.0")` |
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.0" }`, with `GAMUT_LIB_DIR` at a release's core |
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 generalisation.** The root may name one group label in
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 % of outcomes fall below | `q` in (0, 1); a symmetric interval is two quantiles |
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 licence that software requires; a model
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 neighbour
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 catalogues can read them. `/notes` holds any other free-form
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 65,504 bytes of UTF-8 less the room its
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: 65,496 bytes for `title`, `license` and `source`, and 65,488 for
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 = 262,144 bytes and b the bytes of one entry along
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, 3,000 appends of one
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 32,768 entries without it reached 196 MB. Readers need
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 generalisation group, or of one run, on both sides |
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²⁶ (67,108,864) values, the reference validator's limit |
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 3,000
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.0") and the format string it writes
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-neighbour model (spec section 7.5), so every
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
- Redistribution and use in source and binary forms, with or without
14
- modification, are permitted for any purpose (including commercial purposes)
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 HDF GROUP AND THE CONTRIBUTORS
31
- "AS IS" WITH NO WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. IN NO
32
- EVENT SHALL THE HDF GROUP OR THE CONTRIBUTORS BE LIABLE FOR ANY DAMAGES
33
- SUFFERED BY THE USERS ARISING OUT OF THE USE OF THIS SOFTWARE, EVEN IF
34
- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
-
36
- You are under no obligation whatsoever to provide any bug fixes, patches, or
37
- upgrades to the features, functionality or performance of the source code
38
- ("Enhancements") to anyone; however, if you choose to make your Enhancements
39
- available either publicly, or directly to The HDF Group, without imposing a
40
- separate written license agreement for such Enhancements, then you hereby
41
- grant the following license: a non-exclusive, royalty-free perpetual license
42
- to install, use, modify, prepare derivative works, incorporate into other
43
- computer software, distribute, and sublicense such enhancements or derivative
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
- Limited portions of HDF5 were developed by Lawrence Berkeley National
50
- Laboratory (LBNL). LBNL's Copyright Notice and Licensing Terms can be
51
- found here: COPYING_LBNL_HDF5 file in this directory or at
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.0"
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
- neighbour, model types registered by their owning software, and evaluation
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 65,496 bytes of UTF-8
717
- (`title`, `license`, `source`) or 65,488 (`references`,
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: "1", "degree", "m s-1", "W m-2"."""
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 at this release's version, so that its
62
- # layer matches the wheel's core; each release moves the version the
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\(name="GamutFile", version="([^"]+)"\)', page.read_text(encoding="utf-8")))
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
 
@@ -3,7 +3,7 @@ members = ["gamut-sys", "gamut"]
3
3
  resolver = "2"
4
4
 
5
5
  [workspace.package]
6
- version = "2.3.0"
6
+ version = "2.3.2"
7
7
  edition = "2021"
8
8
  rust-version = "1.70"
9
9
  license = "Apache-2.0"
@@ -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.0" }
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.0").
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.0";
69
+ const char kVersion[] = "2.3.2";
69
70
  const char kFormat[] = "gamut/1";
70
71
 
71
- // HDF5 keeps process-wide state and is built without its thread-safety
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
- using Lock = std::lock_guard<std::recursive_mutex>;
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;