From a8ab5c8b30f9fb85ca75ed7d07bb34895a031a06 Mon Sep 17 00:00:00 2001 From: Grant Meadors <gdmeadors@gmail.com> Date: Thu, 21 Feb 2013 14:37:16 -0800 Subject: [PATCH] Made the segmentDivider less conversative, will give frames with two science segments to the earlier segment. --- segmentDivider.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/segmentDivider.m b/segmentDivider.m index 820d9d8..12971d9 100644 --- a/segmentDivider.m +++ b/segmentDivider.m @@ -160,7 +160,11 @@ function Hoft = segmentDivider(time0, time1) upperPre = 0; intoPre = 0; end - if ii < numberOfJobs + if ii < 0 % numberOfJobs + % numberOfJobs is a conversative option that will + % avoid any frame with two segments; + % if the check is against zero, + % the frame is given to the job that ends there. lowerPost = 128*floor(T.list{1}(ii+1)/128); intoPost = 128 - (T.list{1}(ii+1) - lowerPost); else -- GitLab