Permalink
Browse files

Scriptinterface: Avoid cast to float

  • Loading branch information...
RudolfWeeber committed Dec 3, 2018
1 parent 848a7a8 commit a0d5657cbd56e472c8e914f897c6982468163997
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/python/espressomd/script_interface.pyx
@@ -161,7 +161,7 @@ cdef class PScriptInterface(object):
elif np.issubdtype(np.dtype(type(value)), np.signedinteger):
return make_variant[int](value)
elif np.issubdtype(np.dtype(type(value)), np.floating):
return make_variant[float](value)
return make_variant[double](value)
else:
raise TypeError("Unkown type for conversion to Variant")

0 comments on commit a0d5657

Please sign in to comment.