-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom time values with get_simulation_results() #54
Comments
Could you try manually changing the step number of the time course task before calling get_simulation_results, and see if that gives you the results you want: set_task_settings(T.TIME_COURSE, settings={'problem': {'StepNumber': 1000}}) where |
Brilliant, that does seem to do it! I get more values, the higher Thank you :-) |
I have also noticed a bug I think, which may explain some of the initial inconsistencies I was getting. I actually get different time values from running
I find that Hope this is helpful! |
I never considered a use case where you would run it continuously with only changing the flags. when you run with running To have it consistent you want to try: # Run function output, looking only at times
settings = basico.get_task_settings(T.TIME_COURSE)
function_output = bsc.get_simulation_results(values_only=False)
df_first_false = pd.concat([df for df in function_output[1]])['Time'].unique()
# Run again, changing values_only to True
basico.set_task_settings(T.TIME_COURSE, settings=settings)
function_output = bsc.get_simulation_results(values_only=True)
df_first_true = pd.concat([df for df in function_output[1]])['Time'].unique()
# Run again, changing values_only back to False
basico.set_task_settings(T.TIME_COURSE, settings=settings)
function_output = bsc.get_simulation_results(values_only=False)
df_second_true = pd.concat([df for df in function_output[1]])['Time'].unique() to exclude values before your equilibration time, with In any case just remember for now that you'll have to manually preserve the settings before multiple runs. I'll be sure to change that in a later version. thanks for bringing this up |
release 0.70 now restores the time course settings, resulting in the runs being repeatable. |
Heya Frank,
I hope you're doing well!
I wondered if it would be possible to add a custom, time-values argument to the to the
get_simulation_results()
function intask_parameterestimation.py
.I often like to see the simulation as a smooth line against experimental data points and I can't quite manage to do that with
values_only
set toTrue
orFalse
. I think neither works because I have some equilibration time beforehand.Happy to give clarification on what I mean if you'd like.
Best,
Theo
The text was updated successfully, but these errors were encountered: