Skip to content

Commit 6530062

Browse files
committed
CurveBenchmark.py: fixed TypeError with numpy.linspace (NumPy=1.18)
1 parent 304b94f commit 6530062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qwt/tests/CurveBenchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def process_iteration(self, title, description, widget, t0):
159159

160160
def run_benchmark(self, max_n, **kwargs):
161161
for idx in range(4, -1, -1):
162-
points = max_n/10**idx
162+
points = int(max_n/10**idx)
163163
t0 = time.time()
164164
widget = BMWidget(points, **kwargs)
165165
title = '%d points' % points

0 commit comments

Comments
 (0)