Skip to content

Commit

Permalink
🩹 Fixed line length issue
Browse files Browse the repository at this point in the history
  • Loading branch information
s-weigand authored and jsnel committed Aug 25, 2021
1 parent 8fbdff8 commit 2dd8085
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/test_result_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ def coord_test(
):
"""Tests that coordinates are exactly equal if exact match or string coords or close."""
for expected_coord_name, expected_coord_value in expected_coords.items():
assert (
expected_coord_name in current_coords.keys()
), f"Missing coordinate: {expected_coord_name!r} in {file_name!r}, data_var {data_var_name!r}"
assert expected_coord_name in current_coords.keys(), (
f"Missing coordinate: {expected_coord_name!r} in {file_name!r}, "
f"data_var {data_var_name!r}"
)

if exact_match or expected_coord_value.data.dtype == object:
assert np.array_equal(
Expand Down Expand Up @@ -261,7 +262,8 @@ def test_result_data_var_consistency(
for expected_var_name, expected_var_value in expected_result.data_vars.items():
if expected_var_name != "data":

# weighted_data were always calculated and now will only be calculated when weights are applied
# weighted_data were always calculated and now will only be calculated
# when weights are applied
if (
expected_var_name == "weighted_data"
and expected_var_name not in current_result.data_vars
Expand Down

0 comments on commit 2dd8085

Please sign in to comment.