Commit 2d1a771a authored by Linus Pithan's avatar Linus Pithan
Browse files

black

parent 0a6c0fa7
......@@ -19,17 +19,17 @@ from bliss.common.alias import AliasMixin
# Counter namespaces
class IterableNamespace(SimpleNamespace):
def __init__(self,**kwargs):
def __init__(self, **kwargs):
super().__init__(**kwargs)
def __getitem__(self,key):
def __getitem__(self, key):
return self.__dict__.__getitem__(key)
def __iter__(self):
return self.__dict__.values().__iter__()
@property
def _fields (self):
def _fields(self):
return list(self.__dict__.keys())
......
......@@ -343,9 +343,9 @@ class Lima(object):
# All ROI counters
dct["roi_counters"] = counter_namespace(self.roi_counters.counters)
# Default grouped
default_counters = {**dct["images"].__dict__,**dct["roi_counters"].__dict__}
default_counters = {**dct["images"].__dict__, **dct["roi_counters"].__dict__}
dct["default"] = namespace(default_counters)
# Return namespace
......
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