Hi all,
This is probably a silly question, but one that I haven't been able to figure out by looking at the documentation.
When I was last using oTree, I was able to call a session level variable inside a method using something like "self.session.vars['blah']". However, there is no self and methods are defined over classes.
When I create a method now, there seems to be a problem with calling session.vars. For example
def func(subsession: Subsession):
session.vars['X'] = a
the session will throw an unresolved reference error.
Again, sorry for the silly question, but how do I call a session variable in a method defined for another class?