Skip to content

Commit

Permalink
Merge pull request #376 from 007sumit/experiment_level_algorithm_config
Browse files Browse the repository at this point in the history
Allow algorithm configuration at experiment level
  • Loading branch information
andrew committed Apr 28, 2016
2 parents 4402472 + 8bd8fa6 commit 0903a27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/split/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ def normalized_experiments
experiment_config[experiment_name.to_sym][:metadata] = metadata
end

if algorithm = value_for(settings, :algorithm)
experiment_config[experiment_name.to_sym][:algorithm] = algorithm
end

if (resettable = value_for(settings, :resettable)) != nil
experiment_config[experiment_name.to_sym][:resettable] = resettable
end
Expand Down

0 comments on commit 0903a27

Please sign in to comment.