Skip to content

Commit

Permalink
update to output_data for pysces shape
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Oct 29, 2024
1 parent 6bc4b72 commit 7fb25cf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions compose_worker/output_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,12 @@ def run_sbml_pysces(sbml_fp: str, start, dur, steps):
model = pysces.model(psc_fp)

# run the simulation with specified time params
model.sim_start = start
model.sim_stop = dur
model.sim_points = steps + 1
model.Simulate()
# model.sim_start = start
# model.sim_stop = dur
# model.sim_points = steps + 1
t = np.linspace(start, dur, steps + 1)
model.sim_time = t
model.Simulate(1) # specify userinit=1 to directly use model.sim_time (t) rather than the default

# get output with mapping of internal species ids to external (shared) species names
sbml_species_mapping = get_sbml_species_mapping(sbml_fp)
Expand Down

0 comments on commit 7fb25cf

Please sign in to comment.