calc.potential_temperature does not recognize temperature units #1504
Labels
Area: Units
Pertains to unit information
Status: Upstream
Needs work done in upstream project
Type: Bug
Something is not working like it should
Using v 0.12.2 on Windows 10 with Anaconda, Python 3.8
Get a ValueError
ValueError:
potential_temperature
given arguments with incorrect units:temperature
requires "[temperature]" but given "none".Any variable
x
can be assigned a unit as follows:from metpy.units import units
x = x * units.meter / units.second
As you'll see in the sample code below, I clearly assign tmpk units exactly as shown in the docs, yet it still says it does not have units.
The text was updated successfully, but these errors were encountered: