Skip to content

Conversation

@uellue
Copy link
Contributor

@uellue uellue commented Sep 2, 2025

WIP!

Currently fixes to make LiberTEM/Microscope-Calibration#54 work, later probably some additional tests

Based on #5

...in particular for `run_iter()` and more components.

Test descan error implementation for correctly handling the names, not only indices.

Drive-by flake8 fixes
The types work well to make clear what x and y are, and to distinguish
pixel vs physical coordinates in code.

* Introduce types for single values as opposed to arrays, which correspond well to single rays etc
* Make Grid center a single type
* Allow floats for pixel coordinates since conversion to discrete values
  should happen as late as possible to avoid rounding issues
* Test for conversion helpers that reduce boilerplate
@matbryan52 matbryan52 marked this pull request as ready for review October 1, 2025 13:58
@matbryan52 matbryan52 merged commit 2f87e18 into TemGym:main Oct 1, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants