From f684857d57521cdfe94a907c4eb8aea54bae01e0 Mon Sep 17 00:00:00 2001 From: Ilja Kocken Date: Fri, 10 Sep 2021 20:30:01 +0200 Subject: [PATCH] set default filename for plot_residuals like other plots --- D47crunch/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/D47crunch/__init__.py b/D47crunch/__init__.py index 8fc7611..6fc6101 100755 --- a/D47crunch/__init__.py +++ b/D47crunch/__init__.py @@ -2698,8 +2698,6 @@ def plot_residuals(self, dir = 'output', filename = None, highlight = [], colors if not os.path.exists(dir): os.makedirs(dir) if filename is None: - return fig - elif filename == '': filename = f'D{self._4x}_residuals.pdf' ppl.savefig(f'{dir}/{filename}') ppl.close(fig)