We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 352285e commit 00e3c7cCopy full SHA for 00e3c7c
src/pownet/data_utils.py
@@ -300,8 +300,11 @@ def parse_node_variables(
300
301
node_var_pattern = r"(\w+)\[(.+),(\d+)\]"
302
current_node_vars = solution[solution["varname"].str.match(node_var_pattern)].copy()
303
+
304
# Flow should not be included in the node variables
- current_node_vars = current_node_vars[current_node_vars["vartype"] != "flow"]
305
+ current_node_vars = current_node_vars[
306
+ ~current_node_vars["vartype"].isin(["flow_fwd", "flow_bwd"])
307
+ ]
308
309
current_node_vars[["node", "timestep"]] = current_node_vars["varname"].str.extract(
310
node_var_pattern, expand=True
0 commit comments