def parse(self):
if os.path.exists(self.pklname):        <EOL><INDENT>logger.info('<STR_LIT>' % (self.pklname))<EOL>try:<EOL><INDENT>with open(self.pklname,'<STR_LIT:rb>') as pkl:<EOL><INDENT>(self.mimemsg, self.headxml, self.sizeinfo, self.binarychunks, self.n_integrations, self.n_antennas, self.n_baselines, self.n_basebands, self.n_spws, self.n_channels, self.crosspols) = pickle.load(pkl)<EOL><DEDENT><DEDENT>except:<EOL><INDENT>logger.warning('<STR_LIT>')<EOL>self._parse()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if self.pklname:<EOL><INDENT>logger.info('<STR_LIT>' % (self.pklname))<EOL><DEDENT>self._parse()<EOL><DEDENT>self.headsize, self.intsize = self.calc_intsize()<EOL>return self<EOL>
wrapper for original parse function. will read pkl with bdf info, if available.