Skip to content

Commit 4c109a0

Browse files
committed
Cast to int after integer division
1 parent b42f6e9 commit 4c109a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mpas_analysis/ocean/index_nino34.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def _running_mean(self, inputData, wgts): # {{{
397397
"""
398398

399399
nt = len(inputData)
400-
sp = (len(wgts) - 1)/2
400+
sp = int((len(wgts) - 1)/2)
401401
runningMean = inputData.copy()
402402
for k in range(sp, nt-(sp+1)):
403403
runningMean[k] = sum(wgts*inputData[k-sp:k+sp+1].values)

0 commit comments

Comments
 (0)