Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_<md5>.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.
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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+
]

Expand Down
8 changes: 5 additions & 3 deletions tests/test_processing_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_<md5>.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)
Loading