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

Error grating_optimize #53

Open
JeremyWerle opened this issue Sep 15, 2022 · 0 comments
Open

Error grating_optimize #53

JeremyWerle opened this issue Sep 15, 2022 · 0 comments

Comments

@JeremyWerle
Copy link

I tried to run the code grading_optimize.py both on GoogleColab (numpy version 1.21.6) and on my own computer (numpy version 1.21.5) but I obtain this error message

TypeError Traceback (most recent call last)

in
27
28 my_grad = solve_system()
---> 29 print(my_grad(0.5))
30 #plt.plot(results['thickness'], results['RTot'])
31 plt.show()

8 frames

/usr/local/lib/python3.7/dist-packages/autograd/numpy/numpy_boxes.py in getitem(A, idx)
11
12 @primitive
---> 13 def getitem(A, idx): return A[idx]
14
15 # Constants w.r.t float data just pass though

TypeError: 'float' object is not subscriptable

Thank you for solving this issue !

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

1 participant