ecohydro / maize-Toff

Repo for modeling analysis of of maize yield variability and tradeoffs between yield and crop failure.
4 stars 2 forks source link

potential for overflow... #15

Closed noah-de closed 3 years ago

noah-de commented 5 years ago

When setting up a simulation in an ipython session, I encountered the following:

In [7]: model.run()  
/home/user/Projects/maize-Toff/farm/climate.py:54: RuntimeWarning: overflow encountered in double_scalars
  return pow((s-soil.sh)/(1-soil.sh), q)*E_max

However, on a subsequent simulation, there was no error.

Also. We are noting that on this run:

In [5]: soil.set_nZr(crop)                                                                                               
Out[5]: 225.5