Closed DavidChoi76 closed 3 years ago
Hi @DavidChoi76,
thank you for your message. From looking at the error message it looks to me like the model did not produce all the results you expected it to produce. This is commonly happening with models, e.g. if a parameter combination is not optimal and results in numerical errors.
There are two ways to fix this:
Option 1: Try to figure out why the model fails with the given paramter set and fix this.
Option 2: Ignore the model failure and help spotpy to move on. This means that whatever is happening inside of the def simulation
function should not result in any errors. This can be handled with try
/except
statements. Just make sure that if the model brakes you return the number of simulation results you would have expected. A example for such an approach can be found here and there Lines 59 and 87-89.
Thank you so much. I will try it.
I assume this issue is solved, if not feel free to re-open.
I'm studying spotpy to apply to the SUMMA model. I'm a beginner at uncertainty analysis. I created
spotpy_setup
class and apply this class to spotpy and SUMMA. But there was no problem until 56 times simulations. But I got an error after that. Do you know what the problem is or how to fix it?54 of 100, min objf=0.157309, max objf=0.223511, time remaining: 00:04:49 ['/home/jovyan/work/SUMMA3_Manual/SummaModel_ReynoldsAspenStand_BasicPlot/output/vegImpactsTranspire_Jarvis_0.5694176471187008_timestep.nc'] 55 of 100, min objf=0.157309, max objf=0.223511, time remaining: 00:04:43 ['/home/jovyan/work/SUMMA3_Manual/SummaModel_ReynoldsAspenStand_BasicPlot/output/vegImpactsTranspire_Jarvis_0.6860752758665234_timestep.nc'] 56 of 100, min objf=0.157309, max objf=0.223511, time remaining: 00:04:36 []
IndexError Traceback (most recent call last)