Filter Events Interface Testing¶
Prerequisites
Download the Usage Examples <https://www.mantidproject.org/installation/index#sample-data>
Filter Events¶
Time required: 10-15 minutes
Open
Interfaces>Utility>Filter EventsBrowse for file ‘CNCS_7860_Event.nxs’ from the Usage Data set.
Click
Load. After a few seconds, plot should be updated with a graph of summed up Counts vs.Time._Summed_..workspace should be generated on the ADS, as well asCNCS_7860_Eventworkspace.Clicking on the
Refreshbutton should update the drop-down list with the name of the loaded workspace.Check the vertical dashed green range markers on the plot work properly when dragging:
Starting TimeandStopping TimeText Edits are updated accordingly.Check the horizontal dot-dashed blue range markers on the plot work properly when dragging:
Minimum ValueandMaximum ValueText Edits are updated accordingly.Check that the Text Edits for
Starting TimeandStopping Time(similarly withMinimum ValueandMaximum Value) work correctly:Position of markers on the plot are updated appropriately when changing the numerical value of the edits and pressing Enter.
Setting a value on
Starting Timelarger than the current value onStopping Timeis not allowed, and vice versa.Data Validation is working, you can’t set non-numeric characters on the edits.
Moving the mouse on the plot updates a label in the top left corner with the (x,y) position on the graph.
On
Output Namewrite FilteredTemp.On
Sample Logdrop-down menu selectSampleTempand hit onPlotbutton. Plot should update with the temperature log for the run vs. time.Move the upper vertical range marker to be at approximately
279.95degrees and the lower vertical range marker to be at approximately279.91degrees.Click on
Filterbutton. That should generate several workspaces in the ADS. Two table workspaces ending with_info,_splittersand a group workspace namedFilteredTempcontaining one event workspace namedFilteredTemp_0, as well as aTOFCorrTable2D workspace.Right-click on
FilteredTemp_0and selectShow Sample Logs. On Sample Log Window, check theSampleTempentry and make sure the temperature range is approximately the same as selected with the markers in the interface.Back to the filter events interface, click on the
Refreshbutton. The drop-down list should refresh with the available event workspaces on the ADS (CNCS_7860_EventandFilteredTemp_0).Select
FilteredTemp_0and click onUsebutton. Plot should update accordingly.On output name write FilteredTime, on
Starting Timetext edit write80and then pressEnter. OnStopping Timetext edit write100and pressEnter.Select
Filtered by Timetab and onTime Intervaltext edit write10. Then click onFilterbutton. Two table workspaces ending with_info,_splittersand a group workspace namedFilteredTimecontaining two event workspaces namedFilteredTime_0andFilteredTime_1appear on ADS.Double-click on
FilteredTemp_0_infotable workspace. The table should contain two rows, indicating two time intervals of approximately 10 seconds each, and the corresponding workspace group index.Back to the filter events interface, without changing anything else from previous interaction, go to
Advanced Setuptab and tick theFast Logcheckbox. Go back toFilter by Timeand click onFilterbutton again. Workspace ending in_splittersshould be a 2D workspace, all other workspaces should remain the same.Now on
AlgorithmsselectFilterEventsalgorithm and click onExecute. AsInputWorkspaceselectFilteredTemp_0workspace. On Splitter workspace selectFilteredTemp_0_splitters, and onInformation WorkspaceselectFilteredTemp_0_info. Tick onGroupWorkspacescheckbox. And name theOutputWorkspaceBaseNameasFilteredTimeRedux.Runthe algorithm withGroup Workspaceschecked. On the ADS, a new group event workspace namedFilteredTimeReduxshould appear. The two event workspaces that it contains should be equal to the two event workspace previously generated through the interface,FilteredTime_0andFilteredTime_1.Back to the Filter Events interface. Click on
Refreshbutton again, and make sure it updates with the list of all event workspaces on the ADS.