Skip to content

Commit

Permalink
fixed AttributeError: 'OCRelay' from "Name" to "switch_index"
Browse files Browse the repository at this point in the history
  • Loading branch information
gbanerjeefraunhofer committed Dec 18, 2024
1 parent 0b74d27 commit 1f85bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandapower/protection/protection_devices/ocrelay.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def plot_protection_characteristic(self, net, num=60, xlabel="I [A]", ylabel="ti
plt.grid(True, which="both", ls="-")

def __str__(self):
s = 'Protection Device: %s \nType: %s \nName: %s' % (self.__class__.__name__, self.oc_relay_type, self.name)
s = 'Protection Device: %s \nType: %s \nIndex: %s' % (self.__class__.__name__, self.oc_relay_type, self.switch_index)
self.characteristic_index = 1
return s
def time_grading(net,time_settings):
Expand Down

0 comments on commit 1f85bbf

Please sign in to comment.