Trying to add a new parameter #3210
Unanswered
wass-cloud
asked this question in
Q&A
Replies: 1 comment
-
Use |
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.
-
I'm trying to add the parameter ['Typical plated lithium concentration [mol.m-3]'] to my code due to an error I'm getting where it states that this parameter has no value, however when I do
pybamm.ParameterValues.setitem(param, key = 'Typical plated lithium concentration [mol.m-3]', value = 534 / (6.94e-03))
which should use the update() method to create a new item in the dictionary, instead i am getting the following error:
"Cannot update parameter 'Typical plated lithium concentration [mol.m-3]' as it does not have a default value."
From my experience with python this should not occur, it would just add the new key and value to the dictionary, there would be no need for a default value.
Beta Was this translation helpful? Give feedback.
All reactions