-
Committer:
Alex Chiang
-
Date:
2010-12-03 00:10:07 UTC
-
Revision ID:
alex@chizang.net-20101203001007-gu0zdfbbl47ntlcx
Fix metric calculations, properly taking "no data" days into account
We allow days with no stream flow into our data set. However, we must
properly handle them when calculating our metrics.
We can't add a python None data type to a floating point, so add a few
checks to ensure we won't blow up when we encounter a day without data.
Adjust the calculation for the average daily flow accordingly; a day
without data shouldn't be considered when calculating the average.