TypeError: string indices must be integers in pybamm library file #2575
Unanswered
sreehari33
asked this question in
Q&A
Replies: 1 comment
-
Try just |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
params = pybamm.ParameterValues(chemistry = pybamm.parameter_sets.Chen2020) # calling parameters of chen
from pybamm
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\pybamm\parameters\parameter_values.py", line 65, in init
self.update_from_chemistry(chemistry)
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\pybamm\parameters\parameter_values.py", line 160, in update_from_chemistry
base_chemistry = chemistry["chemistry"]
TypeError: string indices must be integers
hi, I've been stuck with this error for the past few days.The error seems to be in the pybamm library files, tried making some changes but still the error persists.please help.
Beta Was this translation helpful? Give feedback.
All reactions