376 lines
10 KiB
Markdown
376 lines
10 KiB
Markdown
# CHANGELOG
|
|
|
|
|
|
## v0.9.1 (2026-09-11)
|
|
|
|
### Bug Fixes
|
|
|
|
- Find the correct image number from the result list
|
|
([`e61e275`](https://gitea.psi.ch/mx/AareCommon/commit/e61e275a8758153c5ea24fb38b30d85d899f3535))
|
|
|
|
|
|
## v0.9.0 (2026-09-11)
|
|
|
|
### Features
|
|
|
|
- Add function to get res from image number
|
|
([`e56c620`](https://gitea.psi.ch/mx/AareCommon/commit/e56c62027a91ebff3bb00aaf723b4a691fec13b8))
|
|
|
|
|
|
## v0.8.0 (2026-09-09)
|
|
|
|
### Features
|
|
|
|
- Add context manager to suppress print from e.g. macros
|
|
([`f990ac4`](https://gitea.psi.ch/mx/AareCommon/commit/f990ac46798956f596f8d4a8431c628706cbf13f))
|
|
|
|
|
|
## v0.7.4 (2026-09-08)
|
|
|
|
### Bug Fixes
|
|
|
|
- Zoom model typing
|
|
([`8d273d0`](https://gitea.psi.ch/mx/AareCommon/commit/8d273d0438e9a5540f3ba2198e92f78269174724))
|
|
|
|
|
|
## v0.7.3 (2026-09-08)
|
|
|
|
### Bug Fixes
|
|
|
|
- Validate data collection parameters on assignment
|
|
([`c13bb5d`](https://gitea.psi.ch/mx/AareCommon/commit/c13bb5d3668de62bf82f0a454e036fb218189c20))
|
|
|
|
|
|
## 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 <noreply@anthropic.com>
|
|
|
|
Claude-Session: https://claude.ai/code/session_01HiGzkkuiZXei894cnJfgSg
|
|
|
|
|
|
## v0.7.1 (2026-09-03)
|
|
|
|
### Bug Fixes
|
|
|
|
- Exclude jfjochgsunion from QA
|
|
([`907991f`](https://gitea.psi.ch/mx/AareCommon/commit/907991fd122349550b7ce78ee302802e7de87146))
|
|
|
|
### Refactoring
|
|
|
|
- Tidy up for gridscan analysis switching
|
|
([`f13edc3`](https://gitea.psi.ch/mx/AareCommon/commit/f13edc37608e3b0afa2d8ebbc31906a7538eb212))
|
|
|
|
|
|
## v0.7.0 (2026-09-03)
|
|
|
|
### Bug Fixes
|
|
|
|
- Type checking in tests
|
|
([`a400ffc`](https://gitea.psi.ch/mx/AareCommon/commit/a400ffc3be9c384788d64b3fc5e0ed6916947caa))
|
|
|
|
### Code Style
|
|
|
|
- Ruff format and fix
|
|
([`113a388`](https://gitea.psi.ch/mx/AareCommon/commit/113a388e50e438e4cd34240ea94af66375b657b9))
|
|
|
|
### Features
|
|
|
|
- **models**: Ship the grid-scan decision to AareDB
|
|
([`626f1f0`](https://gitea.psi.ch/mx/AareCommon/commit/626f1f0500be317c4c14aadd8eee87c574785bce))
|
|
|
|
GridScanResult gains contour_cells -- the (nx, ny) cells of the chosen 50 % blob, so consumers can
|
|
draw the decision's own footprint over the sample image without recomputing the map. New
|
|
GridScanDecision wraps the result verbatim with provenance (algorithm, version, the Thresholds
|
|
used) and rides on RasterPayloadModel.decision (optional -- DAQs that have not adopted it stay
|
|
valid). jfjoch-client floor moves to 1.0.0rc166: the embedded ScanResult defines the field
|
|
contract, and rc166 adds per-image ice + latt_count and rotation_bravais.
|
|
|
|
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
|
|
Claude-Session: https://claude.ai/code/session_01HiGzkkuiZXei894cnJfgSg
|
|
|
|
|
|
## v0.6.0 (2026-09-03)
|
|
|
|
### Features
|
|
|
|
- Add Meitian's gridscan analysis util
|
|
([`9cad8ec`](https://gitea.psi.ch/mx/AareCommon/commit/9cad8ec4fb72e8a7cc701d31bb90929e72f7c0c8))
|
|
|
|
|
|
## v0.5.4 (2026-08-27)
|
|
|
|
### Bug Fixes
|
|
|
|
- Revert to 0.75 low res spot and 0.25 background
|
|
([`28b29c1`](https://gitea.psi.ch/mx/AareCommon/commit/28b29c12ee88aceb2060d5773bb8bb937a84cbe1))
|
|
|
|
|
|
## v0.5.3 (2026-08-27)
|
|
|
|
### Bug Fixes
|
|
|
|
- Use total spots according to MW
|
|
([`eae49b8`](https://gitea.psi.ch/mx/AareCommon/commit/eae49b82fe7449350b0b0b5a16cfbdca5cceb1e4))
|
|
|
|
### Chores
|
|
|
|
- Drop unused import
|
|
([`b1121ae`](https://gitea.psi.ch/mx/AareCommon/commit/b1121aeeacc2980695a9dd9fcfb5b4549e04bece))
|
|
|
|
|
|
## v0.5.2 (2026-08-27)
|
|
|
|
### Bug Fixes
|
|
|
|
- Supply max image with not enough spots
|
|
([`26d6810`](https://gitea.psi.ch/mx/AareCommon/commit/26d681075f4c2174845dd7bcb5322e4a089eb45f))
|
|
|
|
|
|
## v0.5.1 (2026-08-21)
|
|
|
|
### Bug Fixes
|
|
|
|
- Instantiation of beam centre model
|
|
([`8930f10`](https://gitea.psi.ch/mx/AareCommon/commit/8930f10e3165b3eff7bf6f1d8f4c0c9236a367a9))
|
|
|
|
|
|
## v0.5.0 (2026-08-21)
|
|
|
|
### Features
|
|
|
|
- Add beam centre from detector coords
|
|
([`2ff5216`](https://gitea.psi.ch/mx/AareCommon/commit/2ff521661bd9c015c413aa9ab1747e5c8addb474))
|
|
|
|
### Testing
|
|
|
|
- Add logging tests
|
|
([`ebc3053`](https://gitea.psi.ch/mx/AareCommon/commit/ebc3053e9a0461f9de3fa3cb7dd1f2d4b5916dd6))
|
|
|
|
|
|
## v0.4.2 (2026-08-20)
|
|
|
|
### Bug Fixes
|
|
|
|
- Round kev energy
|
|
([`b299247`](https://gitea.psi.ch/mx/AareCommon/commit/b2992471ce64235613a014c5edf9ee5f7b1f7643))
|
|
|
|
|
|
## v0.4.1 (2026-08-19)
|
|
|
|
### Bug Fixes
|
|
|
|
- Typo in log stream ID
|
|
([`a18d87a`](https://gitea.psi.ch/mx/AareCommon/commit/a18d87ad2b084b491492a5d6b8be3f09e71046ef))
|
|
|
|
|
|
## v0.4.0 (2026-08-18)
|
|
|
|
### Features
|
|
|
|
- **models**: Fluorescence ingest contract shared with AareDB
|
|
([`064a1d5`](https://gitea.psi.ch/mx/AareCommon/commit/064a1d5cab1cd94affce2cf5f992c714df62b7f2))
|
|
|
|
FluorescenceScanIngestModel wraps the existing FluorescenceSpectrumOutputModel with the sample it
|
|
belongs to — the payload for AareDB's POST /dispatcher/protected_router/fluorescence/ ingest.
|
|
FluorescenceScanIngestResponseModel returns the stored scan id plus the elements AareDB identified
|
|
from the peaks, so the beamline GUI can display what was detected.
|
|
|
|
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
|
|
Claude-Session: https://claude.ai/code/session_01F3xoBJBmqJJPLg475iK6cE
|
|
|
|
|
|
## v0.3.1 (2026-08-17)
|
|
|
|
### Bug Fixes
|
|
|
|
- Remove duplicate handler in dev logging config
|
|
([`1a64ea3`](https://gitea.psi.ch/mx/AareCommon/commit/1a64ea3a096c8d2936afcaa8a306954a12d537f0))
|
|
|
|
- Simplify further
|
|
([`2076123`](https://gitea.psi.ch/mx/AareCommon/commit/207612377d64c57bada0eee2fe772548debc3d21))
|
|
|
|
- Simplify log setup
|
|
([`be5e971`](https://gitea.psi.ch/mx/AareCommon/commit/be5e971ff449ee3dbecdeb289422463e3e83c77f))
|
|
|
|
|
|
## v0.3.0 (2026-08-07)
|
|
|
|
### Bug Fixes
|
|
|
|
- Locations of some imports
|
|
([`e995b5b`](https://gitea.psi.ch/mx/AareCommon/commit/e995b5b5aece7be93a01b6e2df3123db7bee1276))
|
|
|
|
### Chores
|
|
|
|
- Add dependencies
|
|
([`648298b`](https://gitea.psi.ch/mx/AareCommon/commit/648298ba2555e2691cdcdaca50a5ee88c958f6d9))
|
|
|
|
### Code Style
|
|
|
|
- Formatting and linting in affected files
|
|
([`7f1d29a`](https://gitea.psi.ch/mx/AareCommon/commit/7f1d29a8cb998fca668dae2a6dbb48a73fd5e3ba))
|
|
|
|
### Continuous Integration
|
|
|
|
- Add more linting steps
|
|
([`7f74144`](https://gitea.psi.ch/mx/AareCommon/commit/7f741446150b5be9cc9a736a85942c4bb1eecefa))
|
|
|
|
### Features
|
|
|
|
- Move clean paths util from daq
|
|
([`1cd7aa5`](https://gitea.psi.ch/mx/AareCommon/commit/1cd7aa5acfe28f50bee41bd6f4cc8486e6324f4b))
|
|
|
|
|
|
## v0.2.2 (2026-08-03)
|
|
|
|
### Bug Fixes
|
|
|
|
- Remove opencv pin
|
|
([`84836fd`](https://gitea.psi.ch/mx/AareCommon/commit/84836fd76a5b157d6c53cc5a13175e59c99dedfb))
|
|
|
|
|
|
## v0.2.1 (2026-07-31)
|
|
|
|
### Bug Fixes
|
|
|
|
- Drop spots_indexed from no-crystal guard
|
|
([`2969af8`](https://gitea.psi.ch/mx/AareCommon/commit/2969af8764b74d03a9da444aebc71b9d2d11a778))
|
|
|
|
Indexing was removed from the crystal score (w_indexed=0.00), so it must not act as a hard veto
|
|
either: a crystal that diffracts but fails to index should still be targeted, not routed to grid
|
|
centre. Guard now checks max spots_low_res only.
|
|
|
|
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
|
|
### Code Style
|
|
|
|
- Ruff format
|
|
([`0dcfe15`](https://gitea.psi.ch/mx/AareCommon/commit/0dcfe15b7c5fa9aba3f8d3e27719b5600de93993))
|
|
|
|
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
|
|
|
|
## v0.2.0 (2026-07-27)
|
|
|
|
### Bug Fixes
|
|
|
|
- Release workflow token
|
|
([`054d7c1`](https://gitea.psi.ch/mx/AareCommon/commit/054d7c1d28c7ca64cb1d489780eabd1d105a9c28))
|
|
|
|
- Tidy exception classes
|
|
([`b879378`](https://gitea.psi.ch/mx/AareCommon/commit/b879378fcd853403a9c9b3f37441b59fb0b851e8))
|
|
|
|
### Code Style
|
|
|
|
- Ruff check fix
|
|
([`5c41290`](https://gitea.psi.ch/mx/AareCommon/commit/5c412902f4996019bb73e2fc45f40d6e7d6eee87))
|
|
|
|
### Features
|
|
|
|
- Use token for release wf on protected main
|
|
([`6139b42`](https://gitea.psi.ch/mx/AareCommon/commit/6139b4282f47ed8377db863efa24ed5192abd7eb))
|
|
|
|
### Testing
|
|
|
|
- Update tests to use instances
|
|
([`2399e0d`](https://gitea.psi.ch/mx/AareCommon/commit/2399e0dddd5102d0a31990534e8d007d1c8b60dd))
|
|
|
|
|
|
## v0.1.5 (2026-07-09)
|
|
|
|
### Bug Fixes
|
|
|
|
- Remove baton warning log
|
|
([`49c4f12`](https://gitea.psi.ch/mx/AareCommon/commit/49c4f12898ec3f38cf228f3f584ebdb886d42213))
|
|
|
|
|
|
## v0.1.4 (2026-07-09)
|
|
|
|
### Bug Fixes
|
|
|
|
- Log config error location
|
|
([`2f012f4`](https://gitea.psi.ch/mx/AareCommon/commit/2f012f42adce190ce72b949a304ac33df758328c))
|
|
|
|
|
|
## v0.1.3 (2026-07-08)
|
|
|
|
### Bug Fixes
|
|
|
|
- Crash on bec init failure; beamline must be set explicitly
|
|
([`4ac9587`](https://gitea.psi.ch/mx/AareCommon/commit/4ac9587abcca2c3036f635381f9935ace1953eb3))
|
|
|
|
### Testing
|
|
|
|
- Update test for env var
|
|
([`3764c98`](https://gitea.psi.ch/mx/AareCommon/commit/3764c987b063fadc4b95286536613e8ee7fded8b))
|
|
|
|
|
|
## v0.1.2 (2026-07-06)
|
|
|
|
### Bug Fixes
|
|
|
|
- Build config to include yamls
|
|
([`164a6ba`](https://gitea.psi.ch/mx/AareCommon/commit/164a6ba6548475b59ff02a7ec4ccc96b03cefc78))
|
|
|
|
|
|
## v0.1.1 (2026-07-06)
|
|
|
|
### Bug Fixes
|
|
|
|
- Load beamline configs from correct dir
|
|
([`6b40d05`](https://gitea.psi.ch/mx/AareCommon/commit/6b40d05a437052e903ec54a0bd1803eafbc7e7f8))
|
|
|
|
|
|
## v0.1.0 (2026-07-02)
|
|
|
|
### Bug Fixes
|
|
|
|
- Release workflow
|
|
([`dbf3e5f`](https://gitea.psi.ch/mx/AareCommon/commit/dbf3e5f9b6e34f9ad1e2ddd909aacb317fe9952f))
|
|
|
|
- Semantic release config
|
|
([`67d0950`](https://gitea.psi.ch/mx/AareCommon/commit/67d0950d5adcd3cebfab2438e86b5c2bdbd5151b))
|
|
|
|
### Code Style
|
|
|
|
- Format to length 100
|
|
([`dc6218e`](https://gitea.psi.ch/mx/AareCommon/commit/dc6218e45fccf31892a5eeac5da1c58b9667221f))
|
|
|
|
### Continuous Integration
|
|
|
|
- Add test run
|
|
([`40b12c1`](https://gitea.psi.ch/mx/AareCommon/commit/40b12c12db3ab6d13d32daae62ce40d467f0353e))
|
|
|
|
- Just run workflow on main pushes
|
|
([`91166de`](https://gitea.psi.ch/mx/AareCommon/commit/91166de646fa3f7b23229448b2f2ed5f6809069f))
|
|
|
|
- Move setup to action and add format ci step
|
|
([`1b38dd5`](https://gitea.psi.ch/mx/AareCommon/commit/1b38dd5d94f27426284d0f56ce7cd46eafe95801))
|
|
|
|
### Features
|
|
|
|
- Add release workflow
|
|
([`b1e456b`](https://gitea.psi.ch/mx/AareCommon/commit/b1e456bcb009642b4de3822be52983b9e5588cb0))
|
|
|
|
### Refactoring
|
|
|
|
- Extract common code from aaredaq
|
|
([`3c27cbe`](https://gitea.psi.ch/mx/AareCommon/commit/3c27cbe75f51d8d21015943af334139c2a386362))
|