TRIQS/TRIQS — Issue #12: Issue with Data analysis/Reproducibility
Author: tomaok
Created: 2011-11-17 10:56:02+00:00
State: open

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.