465b / nemf

A novel three step network-based general ecosystem modeling framework
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Write error message for - IndexError: If fitting parameters are compartments #71

Open 465b opened 4 years ago

465b commented 4 years ago

Error Message

File "C:\Users\u241279\AppData\Local\Programs\Python\Python38-32\lib\site-packages\scipy\integrate_ivp\ivp.py", line 515, in fun = lambda t, x, fun=fun: fun(t, x, args) File "C:\Users\u241279\AppData\Local\Programs\Python\Python38-32\lib\site-packages\gemf\models.py", line 778, in differential_equation y[kk,ll] += globals()[edge['fkt']](x,kk,args[ii][jj]) File "C:\Users\u241279\AppData\Local\Programs\Python\Python38-32\lib\site-packages\gemf\models.py", line 317, in inverse_type_0 B = X[idx_B] # quantity of compartment B (prey/nutrient) IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

YAML Configuration file

exemplary_NPZD_model_maiks.yml.txt

465b commented 4 years ago

Issue was a wrongly configured yaml file.

D:P:
 - fkt: linear_mortality
parameters:
 - 'P'
 - 0.000003
optimise:
 - parameter_no: 1

Parameter #1 is not a valid choice. Write a error message for that