Update calls to deprecated __getitem__() method

master
Dan Howe 6 years ago
parent 248e6daf60
commit fd25ef40ea

@ -7,8 +7,8 @@ def _convert(x, length_scale_factor, from_unit, to_unit):
ureg = pint.UnitRegistry()
# Calculate unit conversion factor
from_unit = ureg[from_unit]
to_unit = ureg[to_unit]
from_unit = ureg(from_unit)
to_unit = ureg(to_unit)
unit_conversion_factor = (1 * from_unit).to(to_unit).magnitude
# Define Froude scaling relationships

Loading…
Cancel
Save