pywr / pycatchmod

A Cython implementation of the rainfall runoff model CATCHMOD (Wilby, 1994)
GNU General Public License v3.0
6 stars 5 forks source link

SoilMoistureDeficitStore.step doesn't check for NaN #7

Open snorfalorpagus opened 8 years ago

snorfalorpagus commented 8 years ago

A NaN in the PET input to SoilMoistureDeficitStore.step doesn't get caught.

snorfalorpagus commented 8 years ago

We could check the inputs to see if they are positive. This will fail for NaN, but also for non-sensible values of rainfall & PET.