Skip to content

Commit

Permalink
Simplify logical expression using De Morgan identities
Browse files Browse the repository at this point in the history
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
  • Loading branch information
Frix-x and sourcery-ai[bot] authored Nov 23, 2024
1 parent d67a901 commit 0c52ee6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shaketune/graph_creators/graph_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0c52ee6

Please sign in to comment.