Salome HOME
Ensure cmake_build_type is used in SALOME 9.12.0
[tools/sat_salome.git] / products / patches / PyFMI-2.6-numpy-1.20-np.float.patch
1 --- PyFMI-2.6_ref/src/pyfmi/fmi_coupled.pyx     2024-01-15 10:37:54.999574589 +0100
2 +++ PyFMI-2.6_dev/src/pyfmi/fmi_coupled.pyx     2024-01-15 10:37:43.735520048 +0100
3 @@ -1004,7 +1004,7 @@
4          Calls the low-level FMI function: fmi2SetReal
5          """
6          input_valueref = np.array(valueref, ndmin=1).ravel()
7 -        set_value      = np.array(values, dtype=np.float, ndmin=1).ravel()
8 +        set_value      = np.array(values, dtype=np.float32, ndmin=1).ravel()
9  
10          if input_valueref.size != set_value.size:
11              raise fmi.FMUException('The length of valueref and values are inconsistent.')