From: Noel O'B. <bao...@gm...> - 2007-04-26 10:57:23
|
On 26/04/07, Karol Langner <kar...@kn...> wrote: > On Thursday 26 April 2007 08:04, Noel wrote: > > Do any of our parsers set the attribute, but then delattr it? Might be > > worth checking. Also, it would be possible to check the types of > > attributes at this point, using an assert statement. I can look into > > this. > > langner@slim:~/tmp/python/cclib/trunk/src/cclib/parser$ grep "delattr" * > logfileparser.py: delattr(self, attr) > > The actual parsing no - the only place it is used is in LogFile.clean(). > > What do you mean by "checking the types of attributes at this point"? Do you > mean checking that the value is the correct type inside LogFile.__setattr()? E.g. verify that mocoeffs is a list of 1 or 2 numeric arrays of rank 2 or whatever. It wouldn't add much overhead to the program, and would act as a sanity check. > > > 5) Numeric->numpy transition. This isn't strictly related to the > > > refactoring, but it might as well be done at once. The related changes > > > seem to be trivial. > > > > Can we leave this until all current tests pass after the first refactoring. > > Of course. I added it, becuase hopefully the refactoring will not break any > tests. > > - Karol > > -- > written by Karol Langner > Thu Apr 26 14:26:08 CEST 2007 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > cclib-devel mailing list > ccl...@li... > https://lists.sourceforge.net/lists/listinfo/cclib-devel > |