We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dda1d14 commit a925318Copy full SHA for a925318
src/instamatic/experiments/fast_adt/experiment.py
@@ -21,7 +21,7 @@
21
from instamatic.processing.ImgConversionTPX import ImgConversionTPX as ImgConversion
22
23
24
-def safe_range(start: float, stop: float, step: float) -> np.ndarray:
+def safe_range(*, start: float, stop: float, step: float) -> np.ndarray:
25
"""Find 2+ floats between `start` and `stop` (inclusive) ~`step` apart."""
26
step_count = max(round(abs(stop - start) / step) + 1, 2)
27
return np.linspace(start, stop, step_count, endpoint=True, dtype=float)
0 commit comments