Commit d8b25cd3 authored by Modellers Operational's avatar Modellers Operational

Bug fix update river script to cope with nemo river objects

parent 86e80bc2
...@@ -21,8 +21,8 @@ start_date = end_date ...@@ -21,8 +21,8 @@ start_date = end_date
for this_river in river_dict.values(): for this_river in river_dict.values():
if hasattr(this_river, 'catchment_precipitation'): if hasattr(this_river, 'catchment_precipitation'):
this_river_update = np.max(this_river.catchment_precipitation[0]) this_river_update = np.max(this_river.catchment_precipitation[0])
if this_river_update < start_date: if this_river_update < start_date:
start_date = this_river_update start_date = this_river_update
if start_date == end_date: if start_date == end_date:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment