feat: Path can now be specified in Corr.dump

This commit is contained in:
Fabian Joswig 2021-12-23 14:42:57 +01:00
parent b8c26fd41d
commit 8d8fa82bbe

View file

@ -584,16 +584,17 @@ class Corr:
return return
def dump(self, filename): def dump(self, filename, **kwargs):
"""Dumps the Corr into a pickle file """Dumps the Corr into a pickle file
Parameters Parameters
---------- ----------
filename : str filename : str
Name of the file Name of the file
path : str
specifies a custom path for the file (default '.')
""" """
dump_object(self, filename) dump_object(self, filename, **kwargs)
return
def print(self, range=[0, None]): def print(self, range=[0, None]):
print(self.__repr__(range)) print(self.__repr__(range))