mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-16 15:20:24 +01: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":
|
||||
from .input.json import dump_to_json
|
||||
dump_to_json([self], file_name)
|
||||
dump_to_json([self], file_name, **kwargs)
|
||||
elif datatype == "pickle":
|
||||
with open(file_name + '.p', 'wb') as fb:
|
||||
pickle.dump(self, fb)
|
||||
|
|
Loading…
Add table
Reference in a new issue