예제 #1
0
    def __init__(self, name, settings):
        InstrumentInterface.__init__(self, name, settings)

        self.ERROR_REPORT_NAME = 'toftof_error_report.xml'
        self.LAST_REDUCTION_NAME = '.mantid_last_toftof_reduction.xml'

        self.scripter = TOFTOFReductionScripter(name, settings.facility_name)
        self.attach(TOFTOFSetupWidget(settings))
예제 #2
0
 def setUp(self):
     self.settingsMock = mock.Mock()
     self.settingsMock.facility_name = "name of facility"
     self.settingsMock.instrument_name = "name of instrument"
     self.setupWidget = TOFTOFSetupWidget(self.settingsMock)