Flexible Time Slicing: Supporting Non-Integer Period Divisions #999
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.
Description of work:
The IS wanted the division of time slice to work with non integer number of sliced periods. For e.g. timeslice=1; total period = 9.2, in which case there will be 9 sliced periods of 1 and the last time slice would be 0.2 long. The 0.2 leftover should be reduced too.
TimeSeries
creation used for slicesperiod / interval
Check all that apply:
References:
This story is related to a previous defects when the rounding up errors in time slicing cause errors - 8091: [DRTSANS] Periodic slicing error while offset is introduced from the start
Manual test for the reviewer
Check list for the reviewer
Execution of tests requiring the /SNS and /HFIR filesystems
It is strongly encouraged that the reviewer runs the following tests in their local machine
because these tests are not run by the GitLab CI. It is assumed that the reviewer has the /SNS and /HFIR filesystems
remotely mounted in their machine.
In the above code snippet, substitute
<MERGE_REQUEST_NUMBER>
for the actual merge request number. Also substitute<my_drtsans_dev_environment>
with the name of the conda environment you use for development. It is critical thatyou have installed the repo in this conda environment in editable mode with
pip install -e .
orconda develop .