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)