Commit aad8e07f authored by Moritz Huebner's avatar Moritz Huebner

Reverted some other changes to restore the original behaviour

parent 60a27381
Pipeline #21906 failed with stages
in 3 minutes and 11 seconds
......@@ -69,15 +69,15 @@ class Result(dict):
val = self._standardise_a_string(dictionary[key])
setattr(self, key, val)
__setattr__ = dict.__setitem__
__delattr__ = dict.__delitem__
def __getattr__(self, name):
return self[name]
except KeyError:
raise AttributeError(name)
__setattr__ = dict.__setitem__
__delattr__ = dict.__delitem__
def __repr__(self):
"""Print a summary """
if hasattr(self, 'samples'):
......@@ -144,7 +144,7 @@ class Result(dict):"Saving result to {}".format(file_name))
try:, self.__dict__), dict(self))
except Exception as e:
logging.error("\n\n Saving the data has failed with the "
"following message:\n {} \n\n".format(e))
Markdown is supported
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