from bioscrape_cobra.bioscrape_cobra_deterministic import BioscrapeCOBRAdeterministic
from bioscrape_cobra.simulate import get_bioscrape_cobra_config, simulate_bioscrape_cobra, plot_variables_list_deterministic
from bioscrape_cobra.plot import plot_single, config_single_cell_bioscrape_cobra_topology
from vivarium.plots.topology import plot_topology
# Show full topology here
#TODO wrap this so I can get the Composite before simulating
#bsc_composite_det = BioscrapeCOBRAdeterministic(get_bioscrape_cobra_config())
biocobra_data_det, comp0_det = simulate_bioscrape_cobra(
initial_glucose=10, #mM
initial_lactose=200, #mM
total_time = 360,
output_type='timeseries')
But setting total_time=361 results in an infeasible solution, such that multiplying the flux solution None by the flux_scaling parameter results in a TypeError
Hi folks,
In section 4.1 of Multi-Paradigm-Composites
Setting
total_time = 360
works just fine:But setting
total_time=361
results in an infeasible solution, such that multiplying the flux solutionNone
by theflux_scaling
parameter results in aTypeError
It seems that checking
if self.solution
should have caught the problem, but perhaps infeasible solutions are still solutions.The simple fix would be to check
if self.solution and self.solution.objective_value