def config_at(self, i):
      """Gets the ith config"""
      selections = {}
      for key in self.store:
        value = self.store[key]
        if isinstance(value, list):
            selected = i % len(value)
            i = i // len(value)
            selections[key]= value[selected]
        else:
            selections[key]= value

      return Config(selections)
def config_at ( self , i ) : selections = { } for key in self . store : value = self . store [ key ] if isinstance ( value , list ) : selected = i % len ( value ) i = i // len ( value ) selections [ key ] = value [ selected ] else : selections [ key ] = value return Config ( selections )
Gets the ith config