Skip to content

Commit

Permalink
deepsource
Browse files Browse the repository at this point in the history
  • Loading branch information
grzanka committed Mar 22, 2024
1 parent 274b35f commit d6c5ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymchelper/writers/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=' ')
Expand Down

0 comments on commit d6c5ac3

Please sign in to comment.