From d8d89f4ad8b511ac70b447c78fd53e5d974e8ac9 Mon Sep 17 00:00:00 2001 From: semantic-release Date: Mon, 7 Sep 2026 22:22:24 +0000 Subject: [PATCH] 0.7.2 Automatically generated by python-semantic-release --- CHANGELOG.md | 22 ++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bdd9be..62c6fcc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,28 @@ # CHANGELOG +## v0.7.2 (2026-09-07) + +### Bug Fixes + +- Transmission is a fraction of full beam everywhere + ([`c095cb4`](https://gitea.psi.ch/mx/AareCommon/commit/c095cb484e4312d97a1a72a5e06afa0687e3f74d)) + +DataCollectionParameters.transmission was the outlier: int percent 0-100 while BeamlineStatus / + SimpleScanParameters / FluorescenceSpectrum already used a 0-1 fraction. Per the DAQ/DB consensus + it is now a strict Annotated[float, Field(ge=0.0, le=1.0)] fraction (1.0 = full beam); + percent-scale values in (1.0, 100.0] fail validation by design instead of being silently + reinterpreted. RotationScanRequest / RasterGridRequest gain the same constraint (production data + is already fraction on those paths). + +Human-facing surfaces (user spreadsheets, AareDB public API) stay percent; their converters live in + AareDB at the boundary. + +Co-Authored-By: Claude Fable 5 + +Claude-Session: https://claude.ai/code/session_01HiGzkkuiZXei894cnJfgSg + + ## v0.7.1 (2026-09-03) ### Bug Fixes diff --git a/pyproject.toml b/pyproject.toml index c83056f..7c08038 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "aarecommon" -version = "0.7.1" +version = "0.7.2" description = "Common components (models, calculations) for Aare packages" readme = "README.md" requires-python = ">=3.11"