cbcpost does not allow for storing of dolfin.Parameters
Issue #3
resolved
It would be very useful if cbcpost could store dolfin.Parameters as well as the custom ParamDict for instance via:
from dolfin import *
from cbcpost import *
pp = PostProcessor(dict(casedir="results", clean_casedir=True))
info(parameters)
pp.store_params(parameters)
Comments (3)
-
-
reporter Great, thanks! Works like a charm.
-
- changed status to resolved
- Log in to comment
The dolfin parameters are not pickleable, and therefore won't work for simple storing/loading. However, the following is supported:
For improved readability in the params.txt-file, I suggest converting the dict (recursively) to ParamDict, which is now supported: