Closed tayral closed 12 years ago
Hi,
In the code snippet
import sys, pytriqs.Base.version as version log = Results.create_group("log") log["code_version"] = version.revision()
shouldn't version.revision() be changed to version.revision ? otherwise I get
TypeError: 'str' object is not callable
... and log set to Results["log"] through
log = Results["log"]
(after having created the group "log" in Results) ? Otherwise log remains NoneType and I get the error
TypeError: 'NoneType' object is not subscriptable
When I carry out these two modifications everything seems to work fine.
Yes, you're right, the script was wrong. I will fix the documentation...
Hi,
In the code snippet
shouldn't version.revision() be changed to version.revision ? otherwise I get
... and log set to Results["log"] through
(after having created the group "log" in Results) ? Otherwise log remains NoneType and I get the error
When I carry out these two modifications everything seems to work fine.