Skip to content

Commit 6ad085c

Browse files
authored
Improve typing, docstrings, convenience, DRY in stagematrix calibration (#149)
* Remove repetition, add, fix type hints to stagematrix code * Fix correctly set stage with backlash + simplify writing * Fixes needed for tecnai + some notes * Use normalization None if normalized `phase_cross_correlation` doesn't work * Fix broken main_entry logic, simplify conditional mess, improve type hints * Add `get_or_roughly_estimate_pixelsize`, remove comments * Revert unnecessary function name change * DRY `calibrate_stage_all` docstring * Implementation of `pairwise` can be slightly shorter * Fix type hint of `pairwise` * Address mypy suggestions to a reasonable degree
1 parent 8df2c1b commit 6ad085c

File tree

3 files changed

+143
-158
lines changed

3 files changed

+143
-158
lines changed

src/instamatic/_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
from typing_extensions import Annotated
77

8-
AnyPath = Union[str, bytes, os.PathLike]
8+
AnyPath = Union[str, os.PathLike]
99
int_nm = Annotated[int, 'Length expressed in nanometers']
1010
float_deg = Annotated[float, 'Angle expressed in degrees']

0 commit comments

Comments
 (0)