Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small fixes for graph creation #575

Merged
merged 3 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandapipes/converter/stanet/table_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def create_heat_exchangers_stanet(net, stored_data, index_mapping, add_layers, a
# TODO: there is no qext given!!!
pandapipes.create_heat_exchanger(
net, node_mapping[from_stanet_nr], node_mapping[to_stanet_nr], qext_w=qext,
diameter_m=float(row.DM / 1000), loss_coefficient=row.ZETA, std_type=row.ROHRTYP,
diameter_m=float(row.DM / 1000), loss_coefficient=row.ZETA,
in_service=bool(row.ISACTIVE), name="heat_exchanger_%s_%s" % (row.ANFNAM, row.ENDNAM),
stanet_nr=int(row.RECNO), stanet_id=str(row.STANETID), v_stanet=row.VM,
stanet_active=bool(row.ISACTIVE), **add_info
Expand Down
2 changes: 1 addition & 1 deletion pandapipes/topology/create_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def create_nxgraph(net, include_pipes=True, respect_status_pipes=True,
loc = locals()
branch_params.update({"%s_%s" % (par, bc): loc.get("%s_%s" % (par, bc)) for par in branch_kw
for bc in ["pipes", "valves", "pumps", "press_controls",
"mass_circ_pumps", "press_circ_pumps", "valve_pipes",
"mass_circ_pumps", "pressure_circ_pumps", "valve_pipes",
"flow_controls"]})

for comp in net.component_list:
Expand Down
Loading