JaneliaSciComp / G4_Display_Tools

Collection of tools for the G4 LED arena displays.
Creative Commons Attribution 4.0 International
2 stars 2 forks source link

Predicted experiment length does not include re-runs or pretrial if pretrial is of undetermined length #45

Closed taylorlm88 closed 3 weeks ago

taylorlm88 commented 2 years ago

People have the option of setting the pre-trial to run continuously until they push a button. If it is set this way, when the software calculates the total experiment length, it assumes 0 seconds for the pre-trial. Thus, when the experiment actually runs, the amount of total time elapsed will exceed the expected experiment length by the length of the pre-trial.

In addition, if streaming is enabled and you set it to re-run failed trials at the end of an experiment, the length of these re-runs is not factored into the experiment length, so the expected time remaining becomes negative (because the elapsed time is longer than the expected time). Could update these numbers in real time.

taylorlm88 commented 3 weeks ago

Completed with commit 383cd7d26eab4e4c79b851fbb8f3ceb8acc60f3f

the time added by reruns is now calculated and added in real time to the experiment length, and in the case of a variable length pretrial, the pretrial is timed and that is used to update the experiment length after the pretrial is done running.