Ejemplo n.º 1
0
 def runTest(self):
     """
     Override parent method, does the work of running the test
     """
     try:
         # Load files and create workspace group
         names = ('BASIS_63652_sqw', 'BASIS_63700_sqw')
         [
             Load(Filename=name + '.nxs', OutputWorkspace=name)
             for name in names
         ]
         GroupWorkspaces(InputWorkspaces=names,
                         OutputWorkspace='elwin_input')
         ElasticWindowMultiple(InputWorkspaces='elwin_input',
                               IntegrationRangeStart=-0.0035,
                               IntegrationRangeEnd=0.0035,
                               BackgroundRangeStart=-0.1,
                               BackgroundRangeEnd=-0.05,
                               SampleEnvironmentLogName='SensorA',
                               SampleEnvironmentLogValue='average',
                               OutputInQ='outQ',
                               OutputInQSquared='outQ2',
                               OutputELF='ELF',
                               OutputELT='ELT')
     finally:
         self.preptear()
Ejemplo n.º 2
0
    def setUpClass(cls):
        config['default.facility'] = 'ISIS'

        _create_group_test_workspace('__testData')

        ElasticWindowMultiple(InputWorkspaces='__testData',
                              IntegrationRangeStart=-0.1,
                              IntegrationRangeEnd=0.1,
                              OutputInQ='__q',
                              OutputInQSquared='__q2',
                              OutputELF='__elf')
Ejemplo n.º 3
0
    def runTest(self):
        input_files = Load(Filename='irs26173_graphite002_red.nxs,irs26176_graphite002_red.nxs')

        ElasticWindowMultiple(InputWorkspaces=input_files,
                              IntegrationRangeStart=-0.2,
                              IntegrationRangeEnd=0.2,
                              BackgroundRangeStart='-0.24',
                              BackgroundRangeEnd='-0.22',
                              OutputInQ='eq',
                              OutputInQSquared='eq2',
                              OutputELF='elf')

        GroupWorkspaces(InputWorkspaces=['eq', 'eq2', 'elf'],
                        OutputWorkspace='__ElwinResultsGroup')
Ejemplo n.º 4
0
    def runTest(self):
        Load(Filename='osi92762_graphite002_red.nxs,osi92763_graphite002_red.nxs',
             OutputWorkspace='__ElWinMulti_InputWS')

        ElasticWindowMultiple(InputWorkspaces='__ElWinMulti_InputWS',
                              IntegrationRangeStart=-0.2,
                              IntegrationRangeEnd=0.2,
                              BackgroundRangeStart='-0.24',
                              BackgroundRangeEnd='-0.22',
                              OutputInQ='eq',
                              OutputInQSquared='eq2',
                              OutputELF='elf',
                              OutputELT='elt')

        GroupWorkspaces(InputWorkspaces=['elf', 'elt'],
                        OutputWorkspace='__ElWinMulti_OutputWS')