def load_mpc(self):
    (dpsimpy_busses_dict, dpsimpy_comp_dict) = self.create_dpsim_objects()
    system_comp = []
    system_nodes = []
    for (key, value) in dpsimpy_comp_dict.items():
        dpsimpy_component = value[0]
        connection_nodes = value[1]
        dpsimpy_component.connect(connection_nodes)
        system_comp.append(dpsimpy_component)
        for n in connection_nodes:
            if (n in system_nodes):
                continue
            else:
                system_nodes.append(n)
    system = dpsimpy.SystemTopology(self.mpc_freq, system_nodes, system_comp)
    return system
def load_mpc(self):
    (dpsimpy_busses_dict, dpsimpy_comp_dict) = self.create_dpsim_objects()
    system_comp = []
    system_nodes = []
    for (key, value) in dpsimpy_comp_dict.items():
        dpsimpy_component = value[0]
        connection_nodes = value[1]
        dpsimpy_component.connect(connection_nodes)
        system_comp.append(dpsimpy_component)
        for n in connection_nodes:
            if (n in system_nodes):
                continue
            else:
                system_nodes.append(n)
    system = dpsimpy.SystemTopology(self.mpc_freq, system_nodes, system_comp)
    return system