Skip to content

Commit

Permalink
cast to float
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Nov 21, 2024
1 parent 411b7be commit ee59d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useq/_z.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def positions(self) -> Sequence[float]:
if step == 0:
return [start]
stop += step / 2 # make sure we include the last point
return list(np.arange(start, stop, step))
return [float(x) for x in np.arange(start, stop, step)]

def num_positions(self) -> int:
start, stop, step = self._start_stop_step()
Expand Down

0 comments on commit ee59d27

Please sign in to comment.