def __init__(self, name, settings): super(DgsInterface, self).__init__(name, settings) self.ERROR_REPORT_NAME = "dgs_error_report.xml" # Scripter object to interface with Mantid self.scripter = DgsReductionScripter(name=name, facility=settings.facility_name) # Sample run setup self.attach(SampleSetupWidget(settings = self._settings, data_type = self.data_type)) # Data corrections self.attach(DataCorrectionsWidget(settings = self._settings, data_type = self.data_type)) # Diagnose detectors self.attach(DiagnoseDetectorsWidget(settings = self._settings, data_type = self.data_type)) # Absolute units normalisation self.attach(AbsoluteUnitsWidget(settings = self._settings, data_type = self.data_type)) # Powder and Single Crystal conversion #self.attach(PdAndScConversionWidget(settings = self._settings, # data_type = self.data_type)) # Remote jobs status if self.remote_resources_available(): self.attach(RemoteJobsWidget(settings = self._settings))
def __init__(self, name, settings): """ """ super(DiffractionInterface, self).__init__(name, settings) self.ERROR_REPORT_NAME = "diffraction_error_report.xml" # Scripter object to interface with Mantid self.scripter = DiffractionReductionScripter( name=name, facility=settings.facility_name) # Tab 1: Run number setup (Will be the first one) self.attach( RunSetupWidget(settings=self._settings, data_type=self.data_type)) # Tab 2: Advanced and Vanadium number setup self.attach( AdvancedSetupWidget(settings=self._settings, data_type=self.data_type)) # Tab 3: Event filters setup self.attach( FilterSetupWidget(settings=self._settings, data_type=self.data_type)) # Remote jobs status if self.remote_resources_available(): self.attach(RemoteJobsWidget(settings=self._settings)) return
def __init__(self, name, settings): super(EQSANSInterface, self).__init__(name, settings) self.ERROR_REPORT_NAME = "sans_error_report.xml" self.LAST_REDUCTION_NAME = ".mantid_last_reduction.xml" # Scripter object to interface with Mantid self.scripter = EQSANSReductionScripter(name=name, settings=self._settings) # Instrument description self.attach( SANSInstrumentWidget(settings=self._settings, data_proxy=DataProxy, data_type=self.data_type)) # Detector self.attach( DetectorWidget(settings=self._settings, data_proxy=DataProxy, data_type=self.data_type, use_sample_dc=True, options_callback=self.scripter.set_options)) # Sample self.attach( DataSetsWidget(settings=self._settings, data_proxy=None, data_type=self.data_type)) # Catalog self.attach( SANSCatalogWidget(settings=self._settings, catalog_cls=DataCatalog)) # Tabs that only make sense within MantidPlot if IS_IN_MANTIDPLOT: # Stitcher self.attach(StitcherWidget(settings=self._settings)) # Reduction output self.attach(OutputWidget(settings=self._settings)) # Tabs that only make sense within MantidPlot if IS_IN_MANTIDPLOT: # Remote jobs status if self.remote_resources_available(): self.attach(RemoteJobsWidget(settings=self._settings))