Skip to content

Commit

Permalink
All the integer in python
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Jun 3, 2021
1 parent 717caf9 commit 8a79422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binding/python3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ def add_parameter(
param_ezc3d = ezc3d.Parameter(parameter_name, description)
if isinstance(value, (list, tuple)):
value = np.array(value)
if value.dtype == "int64":
value = value.astype(np.float)
if np.issubdtype(value.dtype, np.integer):
value = value.astype(np.float64)

if isinstance(value, np.ndarray):
param_ezc3d.set(value.reshape(-1, order="F"), value.shape)
Expand Down

0 comments on commit 8a79422

Please sign in to comment.