Skip to content

Commit

Permalink
remove whitespece circle ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Elizaveta Malinina committed Sep 11, 2024
1 parent 0a08358 commit 20ffb97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esmvalcore/preprocessor/_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def extract_season(cube: Cube, season: str) -> Cube:
f"combination of months not possible."
)
sstart = allmonths.index(season)
res_season = allmonths[sstart + len(season) : sstart + 12]
res_season = allmonths[sstart + len(season):sstart + 12]
seasons = [season, res_season]
coords_to_remove = []

Expand Down Expand Up @@ -1191,8 +1191,8 @@ def low_pass_weights(window, cutoff):
kidx = np.arange(1.0, half_order)
sigma = np.sin(np.pi * kidx / half_order) * half_order / (np.pi * kidx)
firstfactor = np.sin(2.0 * np.pi * cutoff * kidx) / (np.pi * kidx)
weights[(half_order - 1) : 0 : -1] = firstfactor * sigma
weights[(half_order + 1) : -1] = firstfactor * sigma
weights[(half_order - 1):0:-1] = firstfactor * sigma
weights[(half_order + 1):-1] = firstfactor * sigma

return weights[1:-1]

Expand Down

0 comments on commit 20ffb97

Please sign in to comment.