Skip to content

Commit

Permalink
Merge pull request e2nIEE#1367 from e2nIEE/rbolgaryn-patch-2
Browse files Browse the repository at this point in the history
Update characteristic_control.py
  • Loading branch information
rbolgaryn authored Oct 20, 2021
2 parents 89e0b35 + 732ffa2 commit 983c111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandapower/control/controller/characteristic_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def _read_from_object_attribute(self, net, element, object_attribute, index):
if hasattr(index, '__iter__') and len(index) > 1:
values = np.array(shape=index.shape)
for i, idx in enumerate(index):
values[i] = setattr(net[element]["object"].at[idx], object_attribute)
values[i] = getattr(net[element]["object"].at[idx], object_attribute)
else:
values = getattr(net[element]["object"].at[index], object_attribute)
return values
Expand Down

0 comments on commit 983c111

Please sign in to comment.