Commit c19419ee authored by Martin Alonso Moraga's avatar Martin Alonso Moraga
Browse files

fixed issue #11

parent 135df81c
Pipeline #220772 passed with stages
in 20 seconds
......@@ -117,7 +117,7 @@ def add_external_network_injection(res, version, mRID, voltage_set_point):
TopologicalNode = ''
if mRID in res:
if 'TopologicalNode' in str(type(res[mRID])):
TopologicalNode = mRID
TopologicalNode = res[mRID]
elif 'ConnectivityNode' in str(type(res[mRID])):
TopologicalNode = res[mRID].TopologicalNode.mRID
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment