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

no callable exp method #48

Open
hadishamkhi opened this issue Feb 15, 2023 · 3 comments
Open

no callable exp method #48

hadishamkhi opened this issue Feb 15, 2023 · 3 comments

Comments

@hadishamkhi
Copy link

How to debug such error?

TypeError: loop of ufunc does not support argument 0 of type ArrayBox which has no callable exp method

So far I encountered when starting some optimization parameters at zero (unchanged system) and sometimes when reducing the tunable parametric space.

@hadishamkhi
Copy link
Author

More info:

AttributeError: 'ArrayBox' object has no attribute 'exp'

@momchil-flex
Copy link
Collaborator

Sorry, it's best if you provide a minimum working example to reproduce the error, I don't really know how to fix right off the bat.

@hadishamkhi
Copy link
Author

hadishamkhi commented Feb 16, 2023

my apologies, I just sent the file to your email. The code is too long to conveniently paste here but it is just a build up on the examples that you have provided.

To my understanding, the error occurs when backend.exp() term in the Circle shape object is set to an integer zero. It appears that numpy.exp() and so is backend.exp() support explicitly inputs of float types.

Edit: I just discovered how to attach files here
gme_flatband_squareSupercell.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants