From: Noel O'B. <bao...@gm...> - 2013-10-06 10:16:02
|
Thanks for this Clyde. Are you happy to place this log file in the public domain? - Noel On 3 October 2013 15:58, Clyde Fare <cly...@gm...> wrote: > Hi, > > Enclosed is a log file that causes problems extracting frequencies, in > particular of the 11 frequencies recorded in the log file only 10 and 11 are > extracted. > > I think the problem is due to the following lines of code: > > # The line with indices > if line[1:15].strip() == "" and > line[15:22].strip().isdigit(): > freqbase = int(line[15:22]) > if freqbase == 1 and hasattr(self, 'vibfreqs'): > # This is a reparse of this information > removeold = True > > and > > if removeold: # This is a reparse, so throw away the old > info > if hasattr(self, "vibsyms"): > # We have already parsed the vibsyms so don't > throw away! > self.vibsyms = > self.vibsyms[-len(line[15:].split()):] > if hasattr(self, "vibirs"): > self.vibirs = [] > if hasattr(self, 'vibfreqs'): > self.vibfreqs = [] > if hasattr(self, 'vibramans'): > self.vibramans = [] > if hasattr(self, 'vibdisps'): > self.vibdisps = [] > removeold = False > > Which mean once the 10th frequency is reached all frequencies are deleted > and parsing begins again. > > In my local copy I've changed the line: > > freqbase = int(line[15:22]) > > to > > freqbase = int(line.split()[0]) > > which I think covers the case the code is intended to cover. > > Cheers > > Clyde > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > _______________________________________________ > cclib-devel mailing list > ccl...@li... > https://lists.sourceforge.net/lists/listinfo/cclib-devel > |