Using a np.ndarray as parameter value for y0 in DynamicsBackend.solve(...) threw an exception.
This was solved by adding a check if the parameter is of type str before checking the equality with ==
fixes #350
Details and comments
Straightforward implementation.
Added the case to the unitest for DynamicsBackend.solve(..)
Summary
Using a
np.ndarray
as parameter value fory0
inDynamicsBackend.solve(...)
threw an exception. This was solved by adding a check if the parameter is of typestr
before checking the equality with==
fixes #350
Details and comments
Straightforward implementation. Added the case to the unitest for
DynamicsBackend.solve(..)