move from eval to __dict__ to access attributes
@@ -875,7 +875,8 @@ def solveOneCycle(agent, solution_last):
# Update time-varying single period inputs
for name in agent.time_vary:
if name in these_args:
- solve_dict[name] = eval('agent.' + name + '[t]')
+ # solve_dict[name] = eval('agent.' + name + '[t]')
+ solve_dict[name] = agent.__dict__[name][t]
solve_dict['solution_next'] = solution_next
# Make a temporary dictionary for this period
