Skip to content

Commit a925318

Browse files
Baharisstefsmeets
andauthored
Does not hurt; Update src/instamatic/experiments/fast_adt/experiment.py
Co-authored-by: Stef Smeets <stefsmeets@users.noreply.github.com>
1 parent dda1d14 commit a925318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instamatic/experiments/fast_adt/experiment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from instamatic.processing.ImgConversionTPX import ImgConversionTPX as ImgConversion
2222

2323

24-
def safe_range(start: float, stop: float, step: float) -> np.ndarray:
24+
def safe_range(*, start: float, stop: float, step: float) -> np.ndarray:
2525
"""Find 2+ floats between `start` and `stop` (inclusive) ~`step` apart."""
2626
step_count = max(round(abs(stop - start) / step) + 1, 2)
2727
return np.linspace(start, stop, step_count, endpoint=True, dtype=float)

0 commit comments

Comments
 (0)