Open kdavies4 opened 10 years ago
Use the displayUnit by default but allow custom override in SimRes.get_values(), SimRes.get_IV(), etc.
displayUnit
SimRes.get_values()
SimRes.get_IV()
Ideas for implementation:
f
unit
None
"m/s2"
m/s**2
modelicares.units
degC
dB
units
c/(m/s)
299792458
Convert methods like min, max, mean, FV, value, and IV to properties. Remove the f argument to methods where no longer needed.
min
max
mean
FV
value
IV
Unit conversion will be based on natu module (to be published soon).
Use the
displayUnit
by default but allow custom override inSimRes.get_values()
,SimRes.get_IV()
, etc.Ideas for implementation:
f
argument toSimRes.get_values()
, etc. with aunit
argument:None
), then usedisplayUnit
."m/s2"
). The units may contain SI prefixes.m/s**2
) where the values are available from a submodule (modelicares.units
).degC
,dB
), also from a submodule.unit
argument, default units,displayUnit
attribute,unit
attributeunits
submodule (e.g.,c/(m/s)
should return299792458
).modelicares.units
.