Skip to content

Commit

Permalink
Merge branch 'mypy-pylint' of github.com:Ouranosinc/xclim into mypy-p…
Browse files Browse the repository at this point in the history
…ylint
  • Loading branch information
aulemahal committed Apr 30, 2024
2 parents 5856971 + 683e83d commit 0793148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xclim/indices/_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ def clausius_clapeyron_scaled_precipitation(
return pr_out


def _get_D_from_M(time):
def _get_D_from_M(time): # noqa: N802
start = time[0].dt.strftime("%Y-%m-01").item()
yrmn = time[-1].dt.strftime("%Y-%m").item()
end = f"{yrmn}-{time[-1].dt.daysinmonth.item()}"
Expand Down Expand Up @@ -1475,7 +1475,7 @@ def potential_evapotranspiration(
ab = tr - 0.0123 * pr
pet = 0.0013 * ra * (tas + 17.0) * ab**0.76
pet = xr.where(np.isnan(ab**0.76), 0, pet)
pett = pet.clip(0) # mm/month
pet = pet.clip(0) # mm/month

elif method in ["mcguinnessbordne05", "MB05"]:
if tas is None:
Expand Down

0 comments on commit 0793148

Please sign in to comment.