Skip to content

Commit

Permalink
fix bug in read_forcing.py that failed to read last yearlty forcing f…
Browse files Browse the repository at this point in the history
…ile. Fixes issue #6
  • Loading branch information
Joe Hamman committed Apr 14, 2014
1 parent c917ff5 commit 139f474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rvic/read_forcing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit 139f474

Please sign in to comment.