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
fix(libecalc): improve validation of pressures set to zero
- Expression values of 0 were treated as missing causing assertion failures
- Add ProcessNonPositivePressureValidationException for clear feedback
when suction, discharge, or intermediate pressure is zero or negative (but
currently only validate when the rate is positive - this should change when
we get other means than rate =0 for switching a consumer off)
- Rename validate_increasing_pressure to validate_pressures
message=f"Invalid pressure at timestep {i+1}: intermediate pressure ({ip}) is non-positive, which is not physically possible."
257
+
)
245
258
ifnot (sp<=ip<=dp):
246
259
raiseProcessPressureRatioValidationException(
247
260
message=f"Invalid pressures at index {i+1}: suction pressure ({sp}) must be less than intermediate pressure ({ip}), which must be less than discharge pressure ({dp})."
0 commit comments