def setup(self): self.__set_names() self.__set_preview() self._data_loader(fluo(), 'fluo', self.fluo_keys) self._data_loader(xrd(), 'xrd', self.xrd_keys) self._data_loader(stxm(), 'stxm', self.stxm_keys) self._data_loader(mon(), 'monitor', self.mon_keys)
def __init__(self, name='MmLoader'): super(MmLoader, self).__init__(name) base = BaseMultiModalLoader() base._populate_default_parameters() self.doc_string = base.__doc__ self.dict = base.parameters self.fluo_keys = self.set_params(fluo(), 'fluo') self.xrd_keys = self.set_params(xrd(), 'xrd') self.stxm_keys = self.set_params(stxm(), 'stxm') self.mon_keys = self.set_params(mon(), 'monitor') for key, value in self.dict.iteritems(): self.parameters[key] = value