~achiang/streamflow/fix-zero-days

  • Committer: Alex Chiang
  • Date: 2010-12-06 18:12:32 UTC
  • Revision ID: alex@chizang.net-20101206181232-u6016mjaqbrfg5tl
Account for years with only 0.00 flow days

If we encounter a year with only 0.00 flow days, we will never set
a max flow day, and we blow up when trying to print a non-existent
variable.

The fix is simple: initialize the max_flow_day and max_flow_month
to dummy values so that we can print something in this case.
Filename Latest Rev Last Changed Committer Comment Size
..
File streamflow.py 12 13 years ago Alex Chiang Account for years with only 0.00 flow days If we 8 KB Diff Download File