예제 #1
0
    def setUp(self):
        study1 = make_sample_study2(add_transp_bind_models=True, add_sims=1)
        self.sim1 = study1.simulations[0]

        study2 = make_sample_study2(add_transp_bind_models=True,
                                    add_sims=1,
                                    with_ph_bind=True)
        self.sim2 = study2.simulations[0]
    def setUpClass(cls):
        real_study = make_sample_study2(add_transp_bind_models=True)
        real_exp = real_study.search_experiment_by_name('Run_1')

        cls.source_method = real_exp.method

        cls.first_simulated_step = "Load"
        cls.last_simulated_step = "Strip"
예제 #3
0
    def setUpClass(cls):
        cls.real_study = make_sample_study2(add_transp_bind_models=True,
                                            add_sims='Run_1')
        cls.real_sim = cls.real_study.simulations[0]

        # Limit the number of process to avoid saturating the machine
        cls.job_manager = create_start_job_manager(max_workers=2)
        # Run the sim
        cls.real_sim.run(cls.job_manager, wait=True)
    def setUp(self):
        self.study = make_sample_study2(add_transp_bind_models=True,
                                        add_sims='Run_1')
        self.sim = self.study.simulations[0]

        self.sim_run = self.sim.copy()
        # Save time by loading results from an already generated file:
        self.result_filepath = io_data_path("std_example_xlsx_run1_cadet.h5")
        update_simulation_results(self.sim_run, self.result_filepath)
        self.sim_run.set_as_run()
    def setUp(self):
        GuiTestAssistant.setUp(self)
        self.study = make_sample_study2()
        exp1 = self.study.search_experiment_by_name('Run_1')
        self.sim1 = build_simulation_from_experiment(exp1)
        self.study.simulations.append(self.sim1)

        exp2 = self.study.search_experiment_by_name('Run_2')
        self.sim2 = build_simulation_from_experiment(exp2)
        self.study.simulations.append(self.sim2)
    def setUp(self):
        self.study = make_sample_study2(add_transp_bind_models=True,
                                        add_sims='Run_1')
        self.sim = self.study.simulations[0]

        # Save time by loading results from an already generated file:
        self.result_filepath = io_data_path("std_example_xlsx_run1_cadet.h5")
        update_simulation_results(self.sim, output_fname=self.result_filepath)
        self.sim.set_as_run()

        # Add a simulation grid
        grp = SimulationGroup(center_point_simulation=self.sim,
                              name="new group")
        self.study.analysis_tools.simulation_grids.append(grp)

        # Add a Monte Carlo simulation group
        mc_grp = make_sample_mc_simulation_group()
        self.study.analysis_tools.monte_carlo_explorations.append(mc_grp)
        # Skip attributes not stored in a study/task: (user) datasource,
        # study_datasource.dirty, sim group's cp,
        self.ignore = {'center_point_simulation', 'datasource', 'perf_params',
                       'dirty'}
예제 #7
0
 def setUp(self):
     self.datasource = SimpleDataSource()
     self.study = make_sample_study2(add_transp_bind_models=True)
     self.study_ds = self.study.study_datasource
     self.sim_builder = SimulationFromDatasourceBuilder(
         datasource=self.datasource, study_datasource=self.study_ds)
예제 #8
0
 def setUp(self):
     self.study = make_sample_study2()
     transport_model = make_sample_transport_model()
     self.study.study_datasource.transport_models.append(transport_model)
     self.exp_name = self.study.experiments[0].name
예제 #9
0
 def setUpClass(cls):
     cls.study2 = make_sample_study2(add_transp_bind_models=True)
     add_sims_from_exp_to_study(cls.study2, ['Run_1'],
                                first_simulated_step_name="Load",
                                last_simulated_step_name="Strip")
     cls.job_manager = create_start_job_manager(max_workers=2)
예제 #10
0
 def setUpClass(cls):
     cls.study2 = make_sample_study2(add_transp_bind_models=True)
 def setUpClass(cls):
     cls.real_study = make_sample_study2(add_transp_bind_models=True)
     cls.real_exp = cls.real_study.search_experiment_by_name('Run_1')
     cls.real_sim = build_simulation_from_experiment(cls.real_exp)
     cls.job_manager = create_start_job_manager(max_workers=1)