Commit 6ad085c
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 degree1 parent 8df2c1b commit 6ad085c
File tree
3 files changed
+143
-158
lines changed- src/instamatic
- calibrate
- utils
3 files changed
+143
-158
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
0 commit comments