From 0c52ee6c92307d7aa270160b7ec48878d5b4d46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Sat, 23 Nov 2024 22:59:11 +0100 Subject: [PATCH] Simplify logical expression using De Morgan identities Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- shaketune/graph_creators/graph_creator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shaketune/graph_creators/graph_creator.py b/shaketune/graph_creators/graph_creator.py index 7ce1464..e010cdd 100644 --- a/shaketune/graph_creators/graph_creator.py +++ b/shaketune/graph_creators/graph_creator.py @@ -53,7 +53,10 @@ def _save_figure( filename = self._folder / f"{self._type.replace(' ', '')}_{self._graph_date}{axis_suffix}" fig.savefig(f'{filename}.png', dpi=self._config.dpi) - if self._config.keep_raw_data and not os.environ.get('SHAKETUNE_IN_CLI') == '1': + if ( + self._config.keep_raw_data + and os.environ.get('SHAKETUNE_IN_CLI') != '1' + ): measurements_manager.save_stdata(f'{filename}.stdata') def get_type(self) -> str: