lib/SimControl/environments/base.rb in SimControl-0.1.6 vs lib/SimControl/environments/base.rb in SimControl-0.1.7

- old
+ new

@@ -1,9 +1,13 @@ module SimControl class BaseEnvironment + def initialize(results_path) + @results_path = results_path + end + def simulate(scenario, seeds) seeds.each do |seed| - execute(scenario.args({seed: seed})) + execute(scenario.args({seed: seed, results: @results_path})) end end end end