mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 20:13:41 +02:00
fix: Obs.dump can now pass kwargs on to json dump routine
This commit is contained in:
parent
698d1a7d57
commit
08e46c56f5
1 changed files with 1 additions and 1 deletions
|
@ -617,7 +617,7 @@ class Obs:
|
||||||
|
|
||||||
if datatype == "json.gz":
|
if datatype == "json.gz":
|
||||||
from .input.json import dump_to_json
|
from .input.json import dump_to_json
|
||||||
dump_to_json([self], file_name)
|
dump_to_json([self], file_name, **kwargs)
|
||||||
elif datatype == "pickle":
|
elif datatype == "pickle":
|
||||||
with open(file_name + '.p', 'wb') as fb:
|
with open(file_name + '.p', 'wb') as fb:
|
||||||
pickle.dump(self, fb)
|
pickle.dump(self, fb)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue