use 1e16 instead of np.inf
use 1e16 instead of np.inf

Use 1e16 which is large enough in practice.
With np.inf there is RuntimeWarning due to NaNs.

aidendoherty/biobankAccelerometerAnalysis,computationalEpidemiology/biobankAccelerometerAnalysis,aidendoherty/biobankAccelerometerAnalysis,computationalEpidemiology/biobankAccelerometerAnalysis