def _generate_two_experiments():
    experimentA = Experiment.Experiment(
        'weblab-pld', Category.ExperimentCategory('WebLab-PLD experiments'),
        'start_date', 'end_date')
    experimentB = Experiment.Experiment(
        'weblab-pld', Category.ExperimentCategory('WebLab-PLD experiments'),
        'start_date', 'end_date')
    return experimentA, experimentB
示例#2
0
 def _generate_two_experiments(self):
     experimentA = Experiment.Experiment(
             'weblab-pld',
             Category.ExperimentCategory('WebLab-PLD experiments'),
             datetime.datetime(2007,1,1),
             datetime.datetime(2008,1,1)
         )
     experimentB = Experiment.Experiment(
             'weblab-fpga',
             Category.ExperimentCategory('WebLab-FPGA experiments'),
             datetime.datetime(2005,1,1),
             datetime.datetime(2006,1,1)
         )
     return experimentA, experimentB
示例#3
0
 def _fix_dates_in_experiments(self, experiments_allowed):
     for experiment_allowed in experiments_allowed:
         experiment = experiment_allowed.experiment
         experiment_allowed.experiment = Experiment.Experiment(
             experiment.name, experiment.category,
             datetime.datetime(experiment.start_date.year,
                               experiment.start_date.month,
                               experiment.start_date.day),
             datetime.datetime(experiment.end_date.year,
                               experiment.end_date.month,
                               experiment.end_date.day))
def generate_experiment(exp_name, exp_cat_name):
    cat = Category.ExperimentCategory(exp_cat_name)
    client = Experiment.ExperimentClient("client", {})
    exp = Experiment.Experiment(exp_name, cat, '01/01/2007', '31/12/2007',
                                client)
    return exp
def generate_experiment(exp_name, exp_cat_name):
    cat = Category.ExperimentCategory(exp_cat_name)
    exp = Experiment.Experiment(exp_name, cat, '01/01/2007', '31/12/2007')
    return exp