Skip to content

Commit

Permalink
Be more explicit in array-checking variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroadmap committed Jan 8, 2018
1 parent fcd941d commit 906e9a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fair/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def fair_scm(emissions=False,
# Goes through all variables in scope and converts them.
frame = inspect.currentframe()
args, _, _, values = inspect.getargvalues(frame)
for i in args:
if type(values[i]) is list:
exec(i + '= np.array(' + i + ')')
for arg_to_check in args:
if type(values[arg_to_check]) is list:
exec(arg_to_check + '= np.array(' + arg_to_check + ')')

# Set up the output timeseries variables depending on options and perform
# basic sense checks
Expand Down

0 comments on commit 906e9a3

Please sign in to comment.