Skip to content

Commit 4117445

Browse files
release: v3.6.1.0 (#100)
* release: v3.6.1.0 Bump the version to 3.6.1.0 for cuvis SDK 3.6.1 and raise the cuvis-il requirement to >=3.6.1,<3.7.0. No API changes. * test: match hashed .cu3sp sidecar names from SDK 3.6.1 SDK 3.6.1 writes target_spectrum_ref_<md5>.cu3sp instead of target_spectrum_ref.cu3sp; the test hardcoded the 3.6.0 names. * changelog: record the sidecar name test fix
1 parent 0a994f5 commit 4117445

3 files changed

Lines changed: 21 additions & 5 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ Pre-releases (`b*`, `rc*`) are not listed.
1313

1414
## [Unreleased]
1515

16+
## [3.6.1.0] - 2026-10-16
17+
18+
Targets cuvis SDK 3.6.1.
19+
First wrapper release for that SDK.
20+
21+
### Changed
22+
23+
- `pyproject.toml` - the `cuvis-il` requirement is raised to `>=3.6.1,<3.7.0`.
24+
25+
### Fixed
26+
27+
- `tests/` - the legacy `.cu3` round-trip test failed against SDK 3.6.1, which appends a content hash to the reference spectrum sidecars (`target_spectrum_ref_<md5>.cu3sp`).
28+
The sidecars are now matched by prefix, one per slot, so the test passes against SDK 3.6.0 and 3.6.1.
29+
1630
## [3.6.0.0] - 2026-09-11
1731

1832
Targets cuvis SDK 3.6.0.

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "cuvis"
7-
version = "3.6.0.0"
7+
version = "3.6.1.0"
88
description = "CUVIS Python SDK."
99
readme = "README.md"
1010
requires-python = ">=3.10"
@@ -14,7 +14,7 @@ authors = [
1414
]
1515

1616
dependencies = [
17-
"cuvis-il>=3.6.0,<3.7.0",
17+
"cuvis-il>=3.6.1,<3.7.0",
1818
"setuptools; python_version>='3.12'" # Only for Python 3.12+
1919
]
2020

‎tests/test_processing_context.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,11 @@ def test_spectra_survive_legacy_cu3_round_trip(
371371
assert len(cu3) == 1
372372

373373
# the spectra land as sidecar files beside the other reference files, shared by
374-
# every measurement saved into the directory, never embedded into the measurement
375-
assert (temp_output_dir / "Calibration" / "target_spectrum_ref.cu3sp").is_file()
376-
assert (temp_output_dir / "Calibration" / "white_spectrum_ref.cu3sp").is_file()
374+
# every measurement saved into the directory, never embedded into the measurement;
375+
# SDK 3.6.1 appends a content hash to the name (target_spectrum_ref_<md5>.cu3sp)
376+
calibration = temp_output_dir / "Calibration"
377+
assert len(list(calibration.glob("target_spectrum_ref*.cu3sp"))) == 1
378+
assert len(list(calibration.glob("white_spectrum_ref*.cu3sp"))) == 1
377379

378380
reloaded = cuvis.Measurement(str(cu3[0]))
379381
assert np.array_equal(np.asarray(reloaded.data["cube"].array), expected)

0 commit comments

Comments
 (0)