Closed gabkrenzer closed 2 years ago
This is a good idea, implementation would involve a .save()
method and a .load()
method for the Analyzer
class, should be pretty straight forward to implement with pickle
.
Ideally this would use a format with a well-defined specification (e.g. JSON) rather than pickle
, but I appreciate this would take more development effort.
Actually it shouldn't be too mush to have as_dict
and from_dict
methods that can be dumped to JSON.
Hmm. It is looking like it is more work than I expected to have json serialisation (not impossible though). In the meantime, I recommending pickling your own objects (https://pythonexamples.org/python-pickle-class-object/).
I have a potential solution which writes to HDF5 files. Happy to hear thoughts on the PR
I have merged this solution. It will be part of a future 0.3.10
release in the coming weeks.
This would be very useful to then post-process soundly.