Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed issue #2234 #2497

Merged
merged 4 commits into from
Dec 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fixed AttributeError: 'OCRelay' from "Name" to "switch_index"
  • Loading branch information
gbanerjeefraunhofer committed Dec 18, 2024
commit 1f85bbfac8bd5f890202c9b31e3edf181dcc366b
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
Loading