Skip to content

Commit

Permalink
removed another linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
atmodatcode committed Sep 16, 2024
1 parent cb1a7bc commit 455489b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atmodat_checklib/utils/summary_creation_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ def write_short_summary(json_summary, cf_version, cf_errors, cf_warns, cf_to_be_
f.write(f"CF checker errors: {str(cf_errors)} (Ignoring errors related to the leading underscore "
f"in the attribute _CoordinateAxisType, which, according to CF convention 2.3 "
f"(Naming Conventions), is recommended but not prohibited.)\n")
if (not cf_to_be_ignored_errors_in.get('formula_terms', False) and
not cf_to_be_ignored_errors_in.get('invalid_attribute_name', False)):
if (not cf_to_be_ignored_errors_in.get('formula_terms', False)
and not cf_to_be_ignored_errors_in.get('invalid_attribute_name', False)):
f.write(f"CF checker errors: {str(cf_errors)}\n")
if cf_warns is not None:
f.write(f"CF checker warnings: {str(cf_warns)}")
Expand Down

0 comments on commit 455489b

Please sign in to comment.