Commit 77020cbd authored by blissadm@id30_massif3's avatar blissadm@id30_massif3
Browse files

avoid call to redis when testing if object is a MeasurementGroup instance

parent 1033a1f1
......@@ -170,6 +170,8 @@ def _active_name(name = ""):
class default_mg(object):
def __getattribute__(self, attr):
if attr == '__class__':
return MeasurementGroup
return getattr(get_active(), attr)
def __setattr__(self,name,value):
active = get_active()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment