Skip to content

Commit

Permalink
fix assign function
Browse files Browse the repository at this point in the history
  • Loading branch information
dguittet committed Apr 17, 2024
1 parent eed4509 commit 9ded981
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions files/Hybrids/HybridBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def assign(self, input_dict):
unassigned = []
for k, v in input_dict.items():
try:
if 'adjust' in k:
k = k.split('adjust_')[1]
self._data.value(k, v)
except:
unassigned.append(k)
Expand Down
3 changes: 2 additions & 1 deletion files/Hybrids/HybridSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def assign(self, input_dict):
break
if not assigned:
unassigned.append(key)
return unassigned
unassigned_dict['hybrid'] = unassigned
return unassigned_dict

def value(self, name):
"""
Expand Down

0 comments on commit 9ded981

Please sign in to comment.