# HG changeset patch # User Nicolas Saunier # Date 1391658100 18000 # Node ID 0b15fdeb903ef0780f0e31be54214a37c34c2ddf # Parent 7ef40014236c1d65776a098d3d43eed379ca81ca bug fix for empty list of temperatures diff -r 7ef40014236c -r 0b15fdeb903e python/pavement.py --- a/python/pavement.py Tue Feb 04 15:00:39 2014 -0500 +++ b/python/pavement.py Wed Feb 05 22:41:40 2014 -0500 @@ -164,7 +164,7 @@ else: compteur = 0 nbre_jours_gel_consecutifs = max(nbre_jours_gel_consecutifs,compteur) - if float(len(tmoys))/nDays >= minProportionMeasures: + if tmoys != [] and float(len(tmoys))/nDays >= minProportionMeasures: ecart_type_T = np.std(tmoys) if neige_tot < snowThreshold: neigeEC_sup_seuil = 0