From 6bb2a07778f6ca0c09ebf0fce25cbd379a2d788e Mon Sep 17 00:00:00 2001 From: Yoel Date: Tue, 17 Sep 2024 20:14:37 -0500 Subject: [PATCH] fix valve image; fix recent important dew point error --- thermosteam/_graphics.py | 1 + thermosteam/equilibrium/dew_point.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/thermosteam/_graphics.py b/thermosteam/_graphics.py index 127ccfbc..1d6fe774 100644 --- a/thermosteam/_graphics.py +++ b/thermosteam/_graphics.py @@ -304,6 +304,7 @@ def tailor_scalar_node(node, unit): # pragma: no coverage node = box_node.copy() node['peripheries'] = '0' def tailor_valve_node(node, unit): # pragma: no coverage + node['label'] = '' if tmo.preferences.graphviz_format == 'svg': node['fillcolor'] = tmo.preferences.unit_color node['fontcolor'] = tmo.preferences.unit_label_color diff --git a/thermosteam/equilibrium/dew_point.py b/thermosteam/equilibrium/dew_point.py index 4563c140..a91f9e47 100644 --- a/thermosteam/equilibrium/dew_point.py +++ b/thermosteam/equilibrium/dew_point.py @@ -35,7 +35,7 @@ def solve_x(x_guess, x_gamma, T, P, f_gamma, gamma_args): gamma_iter, gamma, 1e-12, args=args, checkiter=False, checkconvergence=False, convergenceiter=5, maxiter=DewPoint.maxiter ) - return fn.normalize(x_gamma / gamma) + return x_gamma / gamma # %% Dew point values container @@ -339,6 +339,7 @@ def solve_Px(self, z, T, gas_conversion=None): P_guess, x = self._Px_ideal(z_over_Psats) args = (T, z_norm, z_over_Psats, Psats, x) f = self._P_error + breakpoint() try: P = flx.aitken_secant(f, P_guess, P_guess-10, self.P_tol, 5e-12, args, checkiter=False, maxiter=self.maxiter)