Skip to content

Commit 91e3be4

Browse files
committed
last number should be a float
1 parent 33b2e27 commit 91e3be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compas/utilities/itertools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def linspace(start, stop, num=50):
197197
step = (stop - start) / (num - 1)
198198
for i in range(num - 1):
199199
yield start + i * step
200-
yield stop
200+
yield float(stop)
201201

202202

203203
def flatten(list_of_lists):

0 commit comments

Comments
 (0)