Skip to content

Commit

Permalink
Change names and docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbartos committed Nov 15, 2023
1 parent 93c4536 commit b4c598c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pipedream_solver/superlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b4c598c

Please sign in to comment.