def __init__(self, name='I18MmLoader'): super(I18MmLoader, self).__init__(name) base = BaseI18MultiModalLoader() 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
def setup(self): self.__set_names() 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)