Skip to content

Commit

Permalink
Ensure variables that are passed as a list are loaded correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Mar 2, 2020
1 parent 8756796 commit 2b53cb3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ROSCO_toolbox/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,15 @@ def read_DISCON(self, DISCON_filename):
value = value[1:-1]
else:
value = float(value)
# Some checks for variables that are generally passed as lists
if param.lower() == 'vs_kp':
value = [value]
if param.lower() == 'vs_ki':
value = [value]
if param.lower() == 'flp_kp':
value = [value]
if param.lower() == 'flp_ki':
value = [value]
DISCON_in[param] = value

return DISCON_in
Expand Down

0 comments on commit 2b53cb3

Please sign in to comment.