-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify stage coordinates' units across instamatic (#109)
* Make stage coordinates uniform across instamatic: `int_nm` stage positions and `float_deg` stage tilts * Add `typing.Optional` to `setStagePosition` methods that can accept some `None`s * Add `typing.Optional` and `int_nm`, `float_deg` to stage backlash methods * Bugfix: fix new `Stage.set` TypeError if supplied partial arguments * Make microscope interfaces `getStagePosition` return instance of `StagePositionTuple` * Fix miscellaneous issues found by `mypy` * Since `stage.x`, `y`, `z` are `int`egers, do not waste space formatting them as floats `:.1f` * Rename `typing.py` to `utils.py` since `StagePositionTuple` affects more than typing * Make `int_nm`, `float_deg` just `int`, `float` on Python3.8- that don't have `Annotated` * Fix `FEIMicroscope`'s `getStagePosition` docstring that suggested alpha, beta are not numbers * In `stage.py`, use `Tuple` instead of `tuple` for typing to remain compatible with python3.7, 3.8 * Minor bugfixes, revert unwanted accidental changes * Fix `tests/test_ctrl.py:test_stage` wrongly expected `stage.x/y/z` of `float` type, not `int`
- Loading branch information
Showing
11 changed files
with
237 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.