示例#1
0
 def process(self, text, spec_obj, *args, **kws):
     if not hasattr(spec_obj, 'XPCS'):
         spec_obj.XPCS = {}
     splitWord = strip_first_word(text).split()
     spec_obj.XPCS[splitWord[0]] = splitWord[1:]
     if isinstance(spec_obj, SpecDataFileScan):
         spec_obj.addH5writer(self.key, self.writer)
示例#2
0
 def process(self, text, spec_obj, *args, **kws):
     subkey = text.split()[0].lstrip('#')
     if not hasattr(spec_obj, 'VA'):
         spec_obj.VA = {}
     spec_obj.VA[subkey] = strip_first_word(text)
     if isinstance(spec_obj, SpecDataFileHeader):
         spec_obj.addH5writer(self.key, self.writer)
示例#3
0
 def process(self, text, spec_obj, *args, **kws):
     subkey = text.split()[0].lstrip('#')
     if not hasattr(spec_obj, 'VA'):
         spec_obj.VA = {}
     spec_obj.VA[subkey] = strip_first_word(text)
     if isinstance(spec_obj, SpecDataFileHeader):
         spec_obj.addH5writer(self.key, self.writer)
示例#4
0
 def process(self, text, spec_obj, *args, **kws):
     if not hasattr(spec_obj, 'XPCS'):
         spec_obj.XPCS = {}
     splitWord = strip_first_word(text).split()
     spec_obj.XPCS[splitWord[0]] = splitWord[1:]
     if isinstance(spec_obj, SpecDataFileScan):
         spec_obj.addH5writer(self.key, self.writer)
 def process(self, text, spec_obj, *args, **kws):
     logger.debug(METHOD_ENTER_STR, text)
     subkey = text.split()[0].lstrip('#')
     if not hasattr(spec_obj, 'U'):
         spec_obj.U = {}
     textLine = strip_first_word(text)
     keyValue = textLine.split(":")
     try:
         spec_obj.U[keyValue[0]] = keyValue[1]
     except IndexError as ex:
         logger.exception("Error on: " + str(textLine))
     if isinstance(spec_obj, SpecDataFileHeader):
         spec_obj.addH5writer(self.key, self.writer)