Ticket #8212 (assigned)
Event Filtering can leave 0 log entries
Reported by: | Nick Draper | Owned by: | Wenduo Zhou |
---|---|---|---|
Priority: | critical | Milestone: | Backlog |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
Reported by Rob Dlagleish.
This definitely happens with filtering by log, but might happen with time and filterevents as well.
If you filter the data fine enough so that loging on change does not have an entry within the filtered region you get 0 entries in the log while we should be propogating the last valid log value in (for each filtered section).
rnum=28511 Load(str(rnum),OutputWorkspace=str(rnum),LoadMonitors='1') ws=mtd[str(rnum)] r= ws.getRun() time_array = r.getLogData("proton_charge").times value_array = r.getLogData("proton_charge").value FilterByLogValue(str(rnum),'Theta',0.295,0.305,OutputWorkspace=str(rnum)+"_03deg") Rebin(str(rnum)+"_03deg","5.0,20.0,100000.0",PreserveEvents=0,OutputWorkspace=str(rnum)+"_03deg_Hist")
Change History
Note: See
TracTickets for help on using
tickets.
This case is when the logs only log the value on change, and there were no changes in the filtered period. So the fix is to propagate the last valid value into the start of the filtered period.