Skip to content
Snippets Groups Projects
Commit 09cef524 authored by Pedro L. Magalhães's avatar Pedro L. Magalhães
Browse files

Revised the method to reset node types.

parent 52c13800
No related branches found
No related tags found
1 merge request!7Added support for convex price functions using the delta formulation and...
......@@ -752,9 +752,12 @@ class Network(nx.MultiDiGraph):
elif self.is_source_sink_node(node_key):
# source/sink node
self.source_sink_nodes.remove(node_key)
else: # self.is_waypoint_node(node_key):
elif self.is_waypoint_node(node_key):
# has to be a waypoint node
self.waypoint_nodes.remove(node_key)
# No need to reset node but this could mean something is up
# else:
# raise ValueError('Unknown node type.')
# *************************************************************************
# *************************************************************************
......
......@@ -20,7 +20,6 @@ from topupheat.common.fluids import FluidDatabase # , Fluid
# *****************************************************************************
# *****************************************************************************
class TestDistrictHeatingNetworkUtils:
# *************************************************************************
# *************************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment