Skip to content

Commit

Permalink
simulation: fix input conversion when type is np.floating
Browse files Browse the repository at this point in the history
  • Loading branch information
gasparka committed Aug 10, 2018
1 parent 01aa4f7 commit f07cbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyha/simulation/simulation_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def is_list(x):

if to_types is not None and not is_list(arg[0]):
args[i] = convert_arg(None, arg, i)
elif any(isinstance(x, float) for x in arg):
elif any(isinstance(x, (float, np.floating)) for x in arg):
args[i] = convert_arg(default_sfix, arg, i)

elif any(isinstance(x, (complex, np.complexfloating)) for x in arg):
Expand Down

0 comments on commit f07cbad

Please sign in to comment.