diff --git a/pymchelper/writers/plots.py b/pymchelper/writers/plots.py index b74899fe..03309719 100644 --- a/pymchelper/writers/plots.py +++ b/pymchelper/writers/plots.py @@ -37,7 +37,7 @@ def write_single_page(self, page: Page, output_path: Path): # special case for 0-dim data if page.dimension == 0: # save two numbers to the file - if not page.error is None: + if page.error is not None: np.savetxt(self.output_path, [[page.data_raw, page.error_raw]], fmt="%g %g", delimiter=' ') else: # save one number to the file np.savetxt(self.output_path, [page.data_raw], fmt="%g", delimiter=' ')