TRIQS / triqs_0.x

DEPRECATED -- This is the repository of the older versions of TRIQS
Other
11 stars 9 forks source link

Issue with Data analysis/Reproducibility #12

Closed tayral closed 12 years ago

tayral commented 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.

mferrero commented 12 years ago

Yes, you're right, the script was wrong. I will fix the documentation...