Navigation Menu

Skip to content

Commit

Permalink
fixed bus.set_attr method
Browse files Browse the repository at this point in the history
  • Loading branch information
fwitte committed Jul 23, 2018
1 parent 1ba454f commit 2294261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tespy/connections.py
Expand Up @@ -271,8 +271,8 @@ def __init__(self, label, **kwargs):

def set_attr(self, **kwargs):

self.label = kwargs.get('label')
self.P = kwargs.get('P')
self.label = kwargs.get('label', self.label)
self.P = kwargs.get('P', self.P)

if not np.isnan(self.P):
self.P_set = True
Expand Down

0 comments on commit 2294261

Please sign in to comment.