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
Invalid use of Function(<built-in function setitem>) #5521
Comments
Hey guys, the following code is supposed to solve a diffusion equation for a specialized 3 part system which I
error:
any help, comments or tips are greatly appreciated ?! |
Thanks for the question - do you have a self-contained executable reproducer of the issue? How are you calling |
It somehow looks like you are indexing into the array with a |
Thank you so much for the quick reply. |
So I fixed my initial float error. Thank you for that. I now opened a new but very similar error which shows up only two lines after my initial error and looks like this:
error
I thought that by giving my if condition an int all of the other conditions would be fixed as well. just that this one condition now wants something else. |
The problem here is that Numba treats module-level globals as constants, so you can't write to |
BTW - the section of the docs mentioning the behaviour you're observing is: http://numba.pydata.org/numba-doc/latest/reference/pysemantics.html?highlight=global#global-and-closure-variables |
Thank you so much! This is my first time working with numba and I am slowly figuring this out. But it works amazing. Great advice! I will close this issue now.
|
can you show us the latest code? |
I also encountered a bug similar to this recently, but I'm using numba.typed.List , and it seems that there are anything wrong with "append"?
error parameterized proc.append(m_gbij) [1] During: resolving callee type: type(CPUDispatcher(<function countVgij at 0x0000022FF1901438>)) [3] During: resolving callee type: type(CPUDispatcher(<function countVgij at 0x0000022FF1901438>)) |
Reporting a bug
the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).
The text was updated successfully, but these errors were encountered: