From b4c598c891bccc9b7937ef916943cab6402cf55e Mon Sep 17 00:00:00 2001 From: Matt Bartos Date: Wed, 15 Nov 2023 13:29:37 -0600 Subject: [PATCH] Change names and docstring --- pipedream_solver/superlink.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pipedream_solver/superlink.py b/pipedream_solver/superlink.py index d4b192d..2e405a7 100644 --- a/pipedream_solver/superlink.py +++ b/pipedream_solver/superlink.py @@ -173,6 +173,7 @@ class SuperLink(): | A | float | m^2 | Full area of orifice | | y_max | float | m | Full height of orifice | | z_o | float | m | Offset of bottom above upstream superjunction invert | + | oneway | bool | | Is the flow one-way only? (upstream to downstream) | |-------------+-------+------+------------------------------------------------------| weirs: pd.DataFrame (optional) @@ -521,8 +522,8 @@ def __init__(self, superlinks, superjunctions, self._g1_o = np.sqrt(self._Ao_max) self._g2_o = np.sqrt(self._Ao_max) self._g3_o = np.zeros(self.n_o) - if 'unidir' in self.orifices.columns: - self._unidir_o = self.orifices['unidir'].values.astype(np.bool_) + if 'oneway' in self.orifices.columns: + self._unidir_o = self.orifices['oneway'].values.astype(np.bool_) else: self._unidir_o = np.zeros(self.n_o, dtype=np.bool_) self._Qo = np.zeros(self.n_o, dtype=np.float64)