From: Karol L. <kar...@gm...> - 2017-02-02 20:37:11
|
Hi Marvin, Sorry about that - these pages are terribly outdated. I'll try to make that clearer on the wiki, or better maybe just take the wiki down. Please refer to cclib.github.io for up to date docs. Let us know if you have any other problems. - Karol On Thu, Feb 2, 2017 at 1:32 AM, Marvin GMX <ma...@gm...> wrote: > Hello, > > > > This wiki I found seems not to work with 1.5 > > http://cclib.sourceforge.net/wiki/index.php/Using_cclib# > How_to_store_the_information_extracted_from_a_log_file > > > > # In program 1 > > mydata.writejson("output.txt") > > > > # In program 2 > > from cclib.data import readjson > > mydata = readjson(filename="output.txt") > > # The readjson function can also accept text... > > # mydata = readjson(text='{"atomnos": [6, 6, 6, 6, 6, 6, 1, 1, 1, 1, 6]}') > > > > > > This does not work with 1.5 > > I already changed some things, but the last line doesn’t work. > > > > mydata = csreadjson(filename="output.txt") > > NameError: name 'csreadjson' is not defined > > > > Can someone please tell me what I have to change? > > > > data.writejson("output.txt") > > from cclib.parser import data > > from cclib.io import cjsonreader > > mydata = *csreadjson*(filename="output.txt") > > > > Thanks! > > > > Regards > > Marvin > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > cclib-users mailing list > ccl...@li... > https://lists.sourceforge.net/lists/listinfo/cclib-users > > |