Esempio n. 1
0
 def get_all(self):
     experiment_config = ExperimentConfigManager.get_config()
     response = self.request("GET",
                             self.url,
                             params="family_id={}".format(
                                 experiment_config.family_id))
     experiments_dict = response.json()
     return [Experiment.from_dict(expt) for expt in experiments_dict]
Esempio n. 2
0
 def get(self, id):
     response = self.request("GET", "{}{}".format(self.url, id))
     experiment_dict = response.json()
     return Experiment.from_dict(experiment_dict)