@@ -113,12 +113,12 @@ def _create_lookup_maps(self):
113
113
self .feature_key_variable_key_to_variable_map [feature ['key' ]] = variables_key_map
114
114
self .feature_key_variable_id_to_variable_map [feature ['key' ]] = variables_id_map
115
115
116
- def _get_variables_map (self , variation , experiment ):
117
- """ Gets variables map for given variation and experiment .
116
+ def _get_variables_map (self , experiment , variation ):
117
+ """ Gets variables map for given experiment and variation .
118
118
119
119
Args:
120
- variation dict
121
- experiment dict
120
+ experiment dict -- Experiment parsed from the datafile.
121
+ variation dict -- Variation of the given experiment.
122
122
123
123
Returns:
124
124
dict - Map of variable key to OptimizelyVariable for the given variation.
@@ -143,15 +143,15 @@ def _get_variations_map(self, experiment):
143
143
""" Gets variation map for the given experiment.
144
144
145
145
Args:
146
- experiment dict
146
+ experiment dict -- Experiment parsed from the datafile.
147
147
148
148
Returns:
149
149
dict -- Map of variation key to OptimizelyVariation.
150
150
"""
151
151
variations_map = {}
152
152
153
153
for variation in experiment .get ('variations' , []):
154
- variables_map = self ._get_variables_map (variation , experiment )
154
+ variables_map = self ._get_variables_map (experiment , variation )
155
155
feature_enabled = variation .get ('featureEnabled' , None )
156
156
157
157
optly_variation = OptimizelyVariation (
0 commit comments