From: Marvin G. <ma...@gm...> - 2017-02-02 09:32:31
|
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_inf ormation_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 |