You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem appears because of the existency of circular dependencies in CIM. For example, each topological node points to a SvVoltage object which points back to the topological node object. When we call the str funcion of the TopologicalNode class, it iterates through all its components and calls their respective str function (for example hier).
This means when we call the function str of the class Topological node, this calls the str function of the SvVoltage class, which calls the str function of TopologicalNode and the program ends in a infinite loop.
One possible solution is to use the repr method instead of the str method (see this branch)
To reproduce, in
importCIGREMV.py
, add:Result:
RecursionError: maximum recursion depth exceeded while getting the str of an object
Can also occur with
Terminal
objects (where I first noticed it),ConformLoad
objects,SvPowerFlow
objects and possibly others.The text was updated successfully, but these errors were encountered: