From 139f474118b952fd3cb9843dcc8bdd8dfaa95581 Mon Sep 17 00:00:00 2001 From: Joe Hamman Date: Sun, 13 Apr 2014 19:31:29 -0700 Subject: [PATCH] fix bug in read_forcing.py that failed to read last yearlty forcing file. Fixes issue #6 --- rvic/read_forcing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rvic/read_forcing.py b/rvic/read_forcing.py index 14bdf2a..8cc99c2 100644 --- a/rvic/read_forcing.py +++ b/rvic/read_forcing.py @@ -56,7 +56,7 @@ def __init__(self, path, file_str, time_fld, liq_flds, # yearly files elif len(start) == 1: - for year in xrange(start[0], end[0]): + for year in xrange(start[0], end[0]+1): self.files.append(os.path.join(self.path, file_str.replace('$YYYY', "{0:04d}".format(year))))