Skip to content

Commit

Permalink
Reorder test statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
bayliffe committed Jun 12, 2024
1 parent 4a2d14a commit 15eb714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion improver/utilities/temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def integrate_time(cube: Cube, new_name: str = None) -> Cube:
new_cell_method = CellMethod("sum", coords=["time"])
new_cell_methods = [new_cell_method]
for cm in integrated_cube.cell_methods:
if not "time" in cm.coord_names:
if "time" not in cm.coord_names:
new_cell_methods.append(cm)

integrated_cube.cell_methods = new_cell_methods
Expand Down

0 comments on commit 15eb714

Please sign in to comment.