traitecoevo / plant

Trait-Driven Models of Ecology and Evolution :evergreen_tree:
https://traitecoevo.github.io/plant
53 stars 20 forks source link

Unclear error : Extrapolation disabled and evaluation point outside of interpolated domain. #381

Open fjrrobinson opened 10 months ago

fjrrobinson commented 10 months ago

Branch: time_varying_drivers Parameters: growth_rate_x (and other ..._x time parameters)

Problem: While experimenting with different time scales and adjusting the length of the time-varying driver I kept hitting the error "Extrapolation disabled and evaluation point outside of interpolated domain."

This was unclear what the problem was and it was challenging to figure out the problem.

Identified Issue: After discussion with Andrew and trialling options in the code - it became clear the error was simply that the growth_rate_x had to start from 0 rather than 1 and end at a value greater than the max_patch_timeframe.

This is really a simple error but this was unclear from the error message. A simpler error message that explains this or a warning message would be really helpful.