Skip to content

Commit

Permalink
Make sure control group is created
Browse files Browse the repository at this point in the history
  • Loading branch information
theospears committed Dec 17, 2012
1 parent a0b0a8d commit 5494246
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion experiments/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def enroll(self, experiment_name, alternatives):

experiment = experiment_manager.get(experiment_name, None)
if experiment and experiment.is_displaying_alternatives():
for alternative in alternatives:
alternatives_including_control = alternatives + [CONTROL_GROUP]
for alternative in alternatives_including_control:
experiment.ensure_alternative_exists(alternative)

assigned_alternative = self._get_enrollment(experiment)
Expand Down

0 comments on commit 5494246

Please sign in to comment.