diff --git a/CHANGELOG.md b/CHANGELOG.md index eac4a51..c9890ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,20 @@ Pre-releases (`b*`, `rc*`) are not listed. ## [Unreleased] +## [3.6.1.0] - 2026-10-16 + +Targets cuvis SDK 3.6.1. +First wrapper release for that SDK. + +### Changed + +- `pyproject.toml` - the `cuvis-il` requirement is raised to `>=3.6.1,<3.7.0`. + +### Fixed + +- `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_.cu3sp`). + The sidecars are now matched by prefix, one per slot, so the test passes against SDK 3.6.0 and 3.6.1. + ## [3.6.0.0] - 2026-09-11 Targets cuvis SDK 3.6.0. diff --git a/pyproject.toml b/pyproject.toml index 099e8d0..2bb006c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "cuvis" -version = "3.6.0.0" +version = "3.6.1.0" description = "CUVIS Python SDK." readme = "README.md" requires-python = ">=3.10" @@ -14,7 +14,7 @@ authors = [ ] dependencies = [ - "cuvis-il>=3.6.0,<3.7.0", + "cuvis-il>=3.6.1,<3.7.0", "setuptools; python_version>='3.12'" # Only for Python 3.12+ ] diff --git a/tests/test_processing_context.py b/tests/test_processing_context.py index 5f04c8c..b7ad224 100644 --- a/tests/test_processing_context.py +++ b/tests/test_processing_context.py @@ -371,9 +371,11 @@ def test_spectra_survive_legacy_cu3_round_trip( assert len(cu3) == 1 # the spectra land as sidecar files beside the other reference files, shared by - # every measurement saved into the directory, never embedded into the measurement - assert (temp_output_dir / "Calibration" / "target_spectrum_ref.cu3sp").is_file() - assert (temp_output_dir / "Calibration" / "white_spectrum_ref.cu3sp").is_file() + # every measurement saved into the directory, never embedded into the measurement; + # SDK 3.6.1 appends a content hash to the name (target_spectrum_ref_.cu3sp) + calibration = temp_output_dir / "Calibration" + assert len(list(calibration.glob("target_spectrum_ref*.cu3sp"))) == 1 + assert len(list(calibration.glob("white_spectrum_ref*.cu3sp"))) == 1 reloaded = cuvis.Measurement(str(cu3[0])) assert np.array_equal(np.asarray(reloaded.data["cube"].array), expected)