@@ -1269,7 +1269,7 @@ def to_si(
12691269 >>> from wntr.epanet.util import *
12701270 >>> flow_si = to_si(FlowUnits.GPM, [0.1, 1.0, 4.3], HydParam.Flow)
12711271 >>> print(flow_si)
1272- [6.309019640000001e-06, 6.30901964e-05, 0.00027128784452]
1272+ [np.float64( 6.309019640000001e-06), np.float64( 6.30901964e-05), np.float64( 0.00027128784452) ]
12731273
12741274 Next, we show how to convert the quality parameter from the EPANET units of mg/L to kg/m3.
12751275 If that is not the mass units you prefer, it is possible to change them to ug/L, g/L, or kg/L,
@@ -1283,7 +1283,7 @@ def to_si(
12831283 It is also possible to convert a dictionary of values.
12841284
12851285 >>> to_si(FlowUnits.GPM, {'node1': 5.6, 'node2': 1.2}, HydParam.Pressure)
1286- {'node1': 3.9392568659127623, 'node2': 0.8441264712670206}
1286+ {'node1': np.float64( 3.9392568659127623) , 'node2': np.float64( 0.8441264712670206) }
12871287
12881288 For certain coefficients, there are flags that will change how the conversion occurs. For example,
12891289 reaction coefficients depend on the reaction order.
@@ -1357,7 +1357,7 @@ def from_si(
13571357 >>> from wntr.epanet.util import *
13581358 >>> flow_us = from_si(FlowUnits.GPM, [6.309019640000001e-06, 6.30901964e-05, 0.00027128784452], HydParam.Flow)
13591359 >>> print(flow_us)
1360- [0.1, 1.0, 4.3]
1360+ [np.float64( 0.1), np.float64( 1.0), np.float64( 4.3) ]
13611361
13621362 Next, we show how to convert the quality parameter from kg/m3 to mg/L and then to ug/L.
13631363
@@ -1369,7 +1369,7 @@ def from_si(
13691369 It is also possible to convert a dictionary of values.
13701370
13711371 >>> from_si(FlowUnits.GPM, {'node1': 3.9392568659127623, 'node2': 0.8441264712670206}, HydParam.Pressure)
1372- {'node1': 5.6, 'node2': 1.2}
1372+ {'node1': np.float64( 5.6) , 'node2': np.float64( 1.2) }
13731373
13741374 Finally, an example showing the conversion of 1000 cubic meters per second into the different flow units.
13751375
0 commit comments