Skip to content

Commit

Permalink
#24: return only data from dependent data from time course runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Jun 28, 2022
1 parent 3abcf52 commit bc3fcb7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions basico/task_parameterestimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,12 +1031,13 @@ def get_simulation_results(values_only=False, **kwargs):
data = pd.concat([data, new_row], ignore_index=True)

else:
# run time course
# run time course (getting only the data from the experiment)
duration = df.iloc[-1].Time
cols = ['Time'] + mapping[mapping.type == 'dependent']['cn'].to_list()
if values_only:
data = basico.run_time_course(values=df.Time.to_list(), start_time=df.iloc[0].Time)
data = basico.run_time_course_with_output(output_selection=cols, values=df.Time.to_list(), start_time=df.iloc[0].Time)
else:
data = basico.run_time_course(duration=duration)
data = basico.run_time_course_with_output(output_selection=cols,duration=duration)

exp_data.append(df)
sim_data.append(data)
Expand Down

0 comments on commit bc3fcb7

Please sign in to comment.