The following numkit tests in test_integration.py fail
Test_simps_error.test_odd_const_x
Test_simps_error.test_odd_const_x_dx
The problem is in numkit.integration.simps_error():
if len(x.shape) == 1:
shapex = numpy.ones(nd)
shapex[axis] = x.shape[0]
saveshape = x.shape
returnshape = True
x=x.reshape(tuple(shapex))
E TypeError: 'numpy.float64' object cannot be interpreted as an index
The argument for reshap (shapex) must be an integer or tuple of integers.
The following numkit tests in
test_integration.py
failThe problem is in
numkit.integration.simps_error()
:The argument for reshap (
shapex
) must be an integer or tuple of integers.Fix
Probably just
Background
test_integration