def setUpClass(cls): cls._datadirs = config["datasearch.directories"] cls._facility = config["default.facility"] cls._instrument = config["default.instrument"] config.appendDataSearchSubDir("ILL/D11/") config["default.facility"] = "ILL" config["default.instrument"] = "D11"
def setUpClass(cls): cls._facility = config['default.facility'] cls._instrument = config['default.instrument'] config.appendDataSearchSubDir('ILL/PANTHER/') config['default.facility'] = 'ILL' config['default.instrument'] = 'PANTHER'
def setUp(self): config['default.facility'] = 'ILL' config['default.instrument'] = 'D7' config.appendDataSearchSubDir('ILL/D7/') Load('numerical_attenuation.nxs', OutputWorkspace='numerical_attenuation_ws') self._sampleProperties = { 'SampleChemicalFormula': 'V', 'SampleMass': 8.54, 'FormulaUnitMass': 50.94, 'SampleInnerRadius': 2, 'SampleOuterRadius': 2.5, 'SampleRadius': 2.5, 'Height': 2, 'SampleThickness': 0.5, 'SampleDensity': 0.1, 'SampleAngle': 0, 'SampleWidth': 2.5, 'BeamWidth': 3.0, 'BeamHeight': 3.0, 'ContainerRadius': 2.7, 'ContainerInnerRadius': 1.99, 'ContainerOuterRadius': 2.7, 'ContainerFrontThickness': 0.2, 'ContainerBackThickness': 0.2, 'ContainerChemicalFormula': 'Al', 'ContainerDensity': 0.01, 'EventsPerPoint': 100, 'ElementSize': 1.0, 'IncoherentCrossSection': 0.1, 'SampleSpin': 1.5 }
def setUp(self): config['default.facility'] = 'ILL' config['default.instrument'] = 'D11' config['logging.loggers.root.level'] = 'Warning' config.appendDataSearchSubDir('ILL/D11/') # prepare mask for instrument edges first: MaskBTP(Instrument='D11', Tube='0-6,250-256') RenameWorkspace(InputWorkspace='D11MaskBTP', OutputWorkspace='mask_vertical') MaskBTP(Instrument='D11', Pixel='0-6,250-256') Plus(LHSWorkspace='mask_vertical', RHSWorkspace='D11MaskBTP', OutputWorkspace='edge_masks') # the edges mask can be used as a default mask for all distances and wavelengths MaskBTP(Instrument='D11', Tube='114-142,', Pixel='114-142') RenameWorkspace(InputWorkspace='D11MaskBTP', OutputWorkspace='mask_8m_4_6A_center') MaskBTP(Instrument='D11', Tube='3-14', Pixel='240-256') Plus(LHSWorkspace='D11MaskBTP', RHSWorkspace='mask_8m_4_6A_center', OutputWorkspace='mask_8m_4_6A') MaskBTP(Instrument='D11', Tube='103-147', Pixel='103-147') RenameWorkspace(InputWorkspace='D11MaskBTP', OutputWorkspace='mask_1m_4_6A_center') MaskBTP(Instrument='D11', Tube='3-14', Pixel='240-256') Plus(LHSWorkspace='D11MaskBTP', RHSWorkspace='mask_1m_4_6A_center', OutputWorkspace='mask_1m_4_6A')
def setUp(self): self._facility = config['default.facility'] self._data_search_dirs = config.getDataSearchDirs() config.appendDataSearchSubDir('ILL/D11/') config.appendDataSearchSubDir('ILL/D33/') config.setFacility("ILL") SANSILLReduction(Run='010569', ProcessAs='Sample', OutputWorkspace='sample')
def setUp(self): self._facility = config['default.facility'] config.appendDataSearchSubDir('ILL/D11/') config.appendDataSearchSubDir('ILL/D33/') config['default.facility'] = 'ILL' SANSILLReduction(Run='010569', ProcessAs='Sample', OutputWorkspace='sample')
def setUp(self): config.appendDataSearchSubDir('ILL/D11/') config.appendDataSearchSubDir('ILL/D33/') self._facility = config['default.facility'] self._instrument = config['default.instrument'] config['default.facility'] = 'ILL' config['default.instrument'] = 'D11'
def setUp(self): # these must be set, so the required files # without instrument name can be retrieved config['default.facility'] = 'ILL' config['default.instrument'] = 'IN16B' config.appendDataSearchSubDir('ILL/IN16B/') self.tolerance = 1e-2 self.tolerance_rel_err = True
def setUp(self): config['default.facility'] = 'ILL' config['default.instrument'] = 'D22' config['logging.loggers.root.level'] = 'Warning' config.appendDataSearchSubDir('ILL/D22/') MaskBTP(Instrument='D22', Pixel='0-12,245-255') MaskBTP(Workspace='D22MaskBTP', Tube='54-75', Pixel='108-150') RenameWorkspace(InputWorkspace='D22MaskBTP', OutputWorkspace='D22_mask_central')
def setUp(self): # these must be set, so the required files # without instrument name can be retrieved config['default.facility'] = 'ILL' config['default.instrument'] = 'IN16B' config.appendDataSearchSubDir('ILL/IN16B/') self.tolerance = 1e-3 self.tolerance_rel_err = True # this fails the test every time a new instrument parameter is added # parameters file evolves quite often, so this is not checked self.disableChecking = ['Instrument']
def setUpClass(cls): cls._facility = config['default.facility'] cls._instrument = config['default.instrument'] config['default.facility'] = 'ILL' config['default.instrument'] = 'D7' config.appendDataSearchSubDir('ILL/D7/') Load('vanadium_uniaxial.nxs', OutputWorkspace='vanadium_uniaxial') Load('vanadium_xyz.nxs', OutputWorkspace='vanadium_xyz') Load('vanadium_10p.nxs', OutputWorkspace='vanadium_10p') Load('396993_reduced.nxs', OutputWorkspace='396993_reduced.nxs') GroupWorkspaces('396993_reduced.nxs', OutputWorkspace='vanadium_data' ) # workaround for a single-entry workspace group Load('397004_reduced.nxs', OutputWorkspace='sample_data')
def setUp(self): config['default.facility'] = 'ILL' config['default.instrument'] = 'D11' config['logging.loggers.root.level'] = 'Warning' config.appendDataSearchSubDir('ILL/D11/') # prepare mask for instrument edges first: MaskBTP(Instrument='D11', Tube='1-3,253-256') RenameWorkspace(InputWorkspace='D11MaskBTP', OutputWorkspace='mask_vertical') MaskBTP(Instrument='D11', Pixel='1-3,253-256') Plus(LHSWorkspace='mask_vertical', RHSWorkspace='D11MaskBTP', OutputWorkspace='edge_masks') # the edges mask can be used as a default mask for all distances and wavelengths MaskBTP(Instrument='D11', Tube='116-139', Pixel='90-116') RenameWorkspace(InputWorkspace='D11MaskBTP', OutputWorkspace='mask_39m_10A') MaskBTP(Instrument='D11', Tube='115-140', Pixel='115-140') RenameWorkspace(InputWorkspace='D11MaskBTP', OutputWorkspace='mask_8m_4_6A') MaskBTP(Instrument='D11', Tube='105-145', Pixel='105-145') RenameWorkspace(InputWorkspace='D11MaskBTP', OutputWorkspace='mask_1m_4_6A')
def setUp(self): self._facility = config['default.facility'] config.appendDataSearchSubDir('ILL/D11/') config.appendDataSearchSubDir('ILL/D33/') config['default.facility'] = 'ILL'
def setUpClass(cls): config.appendDataSearchSubDir('ILL/D7/')
def setUp(self): config.appendDataSearchSubDir('ILL/LAMP/')
def setUpClass(cls): config.appendDataSearchSubDir('ILL/IN16B/') config.appendDataSearchSubDir('ILL/D20/')
def setUp(self): config['default.facility'] = 'ILL' config['default.instrument'] = 'IN16B' config.appendDataSearchSubDir('ILL/IN16B/') config.appendDataSearchSubDir('ILL/D20/')
def setUp(self): # set instrument and append datasearch directory config['default.facility'] = 'ILL' config['default.instrument'] = 'D17' config.appendDataSearchSubDir('ILL/D17/')
def setUp(self): config['default.facility'] = 'ILL' config['default.instrument'] = 'D17' config['logging.loggers.root.level'] = 'Warning' config.appendDataSearchSubDir('ILL/D17/')
def setUpClass(cls): config.appendDataSearchSubDir('ILL/D2B/') config.appendDataSearchSubDir('ILL/D20/') config['default.facility'] = 'ILL' config['default.instrument'] = 'D2B'
def setUpClass(cls): config.appendDataSearchSubDir('ILL/D11/') config.appendDataSearchSubDir('ILL/D11B/') config.appendDataSearchSubDir('ILL/D33/')
def setUp(self): config.appendDataSearchSubDir("ILL/D11/") self._facility = config["default.facility"] self._instrument = config["default.instrument"] config["default.facility"] = "ILL" config["default.instrument"] = "D11"
def setUp(self): config['default.facility'] = 'ILL' config['default.instrument'] = 'D2B' config.appendDataSearchSubDir('ILL/D2B/')
def setUp(self): config['default.facility'] = 'ILL' config['default.instrument'] = 'D16' config['logging.loggers.root.level'] = 'Warning' config.appendDataSearchSubDir('ILL/D16/') config['algorithms.retained'] = '0'