Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
465b opened this issue Jun 11, 2020 · 1 comment
Labels
feature request New feature or request minor minor issue

Comments

@465b
Copy link
Owner

465b commented Jun 11, 2020

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']
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 465b added bug Something isn't working major major issue labels Jun 11, 2020
@465b
Copy link
Owner Author

465b commented Jun 11, 2020

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

@465b 465b added feature request New feature or request minor minor issue and removed bug Something isn't working major major issue labels Jun 11, 2020
@465b 465b changed the title IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices Write error message for - IndexError: If fitting parameters are compartments Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request minor minor issue
Projects
None yet
Development

No branches or pull requests

1 participant