Skip to content

Commit 5c13c2b

Browse files
committed
undo xcca unrelated changes to SerializableMixin.
1 parent bcf0b7b commit 5c13c2b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/extra/applications/base.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,22 @@ def _asdict(self):
6262
Return serializable dict.
6363
"""
6464
pass
65-
66-
@classmethod
67-
def _fromdict(cls, all_data):
65+
66+
def _fromdict(self, all_data):
6867
"""
6968
Rebuild it from dict.
7069
"""
71-
return cls(**all_data)
70+
pass
7271

7372
@classmethod
7473
def from_file(cls, filename: str):
7574
"""
7675
Load setup saved with save previously.
7776
"""
78-
#obj = cls()
77+
obj = cls()
7978
with h5py.File(filename, "r") as fid:
8079
all_data = load_dict(fid)
81-
obj = cls._fromdict(all_data)
80+
obj._fromdict(all_data)
8281

8382
return obj
8483

0 commit comments

Comments
 (0)