You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/Modules/CalculationSheet/sanjel/DashboardTable/PumpEfficiency.py", line 204, in
fluid = Stream('water', T=T, P=P, Q=Q)
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/thermo/stream.py", line 215, in init
T=T, P=P, Vf_TP=V_TP)
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/thermo/mixture.py", line 451, in init
self.Chemicals = [Chemical(component, P=P, T=T) for component in self.components]
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/thermo/mixture.py", line 451, in
self.Chemicals = [Chemical(component, P=P, T=T) for component in self.components]
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/thermo/chemical.py", line 578, in init
self.calculate(T, P)
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/thermo/chemical.py", line 587, in calculate
if T:
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/pint/quantity.py", line 1556, in bool
raise ValueError("Boolean value of Quantity with offset unit is ambiguous.")
ValueError: Boolean value of Quantity with offset unit is ambiguous.
The text was updated successfully, but these errors were encountered:
I'm not sure this is a bug. The problem is, with an offset unit, it's not clear what the right answer is. Let's take the example of 0 degrees Celsius. Being zero, this could reasonably be considered False. If you convert to Kelvin, this is now 273.15 and would be True.
Pint version = 0.15
Error StackTrace
Traceback (most recent call last):
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/Modules/CalculationSheet/sanjel/DashboardTable/PumpEfficiency.py", line 204, in
fluid = Stream('water', T=T, P=P, Q=Q)
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/thermo/stream.py", line 215, in init
T=T, P=P, Vf_TP=V_TP)
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/thermo/mixture.py", line 451, in init
self.Chemicals = [Chemical(component, P=P, T=T) for component in self.components]
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/thermo/mixture.py", line 451, in
self.Chemicals = [Chemical(component, P=P, T=T) for component in self.components]
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/thermo/chemical.py", line 578, in init
self.calculate(T, P)
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/thermo/chemical.py", line 587, in calculate
if T:
File "/home/afraz/Desktop/IPMS-PYTHON/IPMS-API/venv/lib/python3.7/site-packages/pint/quantity.py", line 1556, in bool
raise ValueError("Boolean value of Quantity with offset unit is ambiguous.")
ValueError: Boolean value of Quantity with offset unit is ambiguous.
The text was updated successfully, but these errors were encountered: