From 8d8fa82bbebc7535ecc2a1dfc293878f12b885cb Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Thu, 23 Dec 2021 14:42:57 +0100 Subject: [PATCH] feat: Path can now be specified in Corr.dump --- pyerrors/correlators.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyerrors/correlators.py b/pyerrors/correlators.py index e2d8648e..e074f95c 100644 --- a/pyerrors/correlators.py +++ b/pyerrors/correlators.py @@ -584,16 +584,17 @@ class Corr: return - def dump(self, filename): + def dump(self, filename, **kwargs): """Dumps the Corr into a pickle file Parameters ---------- filename : str Name of the file + path : str + specifies a custom path for the file (default '.') """ - dump_object(self, filename) - return + dump_object(self, filename, **kwargs) def print(self, range=[0, None]): print(self.__repr__(range))