Skip to content
Snippets Groups Projects
Commit ddfad924 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

bugfixes

Former-commit-id: 75273c7f92925207a2e25ecae88704f8041aa583
parent 97a56cdc
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ class PostProParameters(ParametersABC):
)
def to_dict(self):
return {k: _if_dict(v) for k, v in self.__dict__()}
return {k: _if_dict(v) for k, v in self.__dict__.items()}
class PostProcessor:
......@@ -69,7 +69,7 @@ class PostProcessor:
self.writer.write(process_result, dataset)
def _ifdict(item):
def _if_dict(item):
if hasattr(item, "to_dict"):
item = item.to_dict()
return item
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment