Exemplo n.º 1
0
 def test_flux_variability_parallel(self):
     mp_view = MultiprocessingView()
     fva_solution = flux_variability_analysis(self.model,
                                              remove_cycles=False,
                                              view=mp_view)
     mp_view.shutdown()
     assert_dataframes_equal(fva_solution,
                             REFERENCE_FVA_SOLUTION_ECOLI_CORE)
Exemplo n.º 2
0
 def test_flux_variability_parallel(self, core_model):
     original_objective = core_model.objective
     mp_view = MultiprocessingView(2)
     fva_solution = flux_variability_analysis(core_model, fraction_of_optimum=0.999999419892,
                                              remove_cycles=False, view=mp_view)
     pfba_fva = flux_variability_analysis(core_model, fraction_of_optimum=1, pfba_factor=1,
                                          view=mp_view).data_frame
     mp_view.shutdown()
     assert_data_frames_equal(fva_solution, REFERENCE_FVA_SOLUTION_ECOLI_CORE)
     assert original_objective == core_model.objective
     assert sum(abs(pfba_fva.lower_bound)) - 518.422 < .001
     assert sum(abs(pfba_fva.upper_bound)) - 518.422 < .001
Exemplo n.º 3
0
 def test_flux_variability_parallel(self, core_model):
     original_objective = core_model.objective
     mp_view = MultiprocessingView(2)
     fva_solution = flux_variability_analysis(core_model, fraction_of_optimum=0.999999419892,
                                              remove_cycles=False, view=mp_view)
     pfba_fva = flux_variability_analysis(core_model, fraction_of_optimum=1, pfba_factor=1,
                                          view=mp_view).data_frame
     mp_view.shutdown()
     assert_data_frames_equal(fva_solution, REFERENCE_FVA_SOLUTION_ECOLI_CORE)
     assert original_objective == core_model.objective
     assert sum(abs(pfba_fva.lower_bound)) - 518.422 < .001
     assert sum(abs(pfba_fva.upper_bound)) - 518.422 < .001
Exemplo n.º 4
0
 def test_flux_variability_parallel(self):
     mp_view = MultiprocessingView()
     fva_solution = flux_variability_analysis(self.model, remove_cycles=False, view=mp_view)
     mp_view.shutdown()
     assert_dataframes_equal(fva_solution, REFERENCE_FVA_SOLUTION_ECOLI_CORE)