Time budget analysis using observation time interval #832
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR proposes to add an option in the Time budget analyses (with timebins or not) to use the observation's defined time interval as the time interval for the time budget analysis.
For instance, when tested with the following observations...
... with the following of interest...
... we end up with the following output (only select columns are pasted here, for clarity):
Note the first observation (video1) uses a different interval than the 2nd observation (video2). The latter was not created with a restricted time interval for the scoring.
A new radio button in created at the bottom of the dialog window:

When only 1 observation is selected, the start and end of the interval that was set during the creation of the observation is displayed:

If no time interval was used then, the display follows the same as if the "media duration" option was selected:

I thought I would upstream this change here in case it is of interest to you. I'm sorry for not asking first if such feature would interest you; I wanted to see if that was possible without too many changes, and ended up with what seems to be functional so far. I tried to run the pytest suite of tests, but it seems some of them were failing before hand so I'm not sure whether you are interested in updating these/adding coverage for the new bits. I'm not familiar with pytest or PySide, but I can have a look at adding that if required.
Thanks in advance for your time considering this PR.