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

[Bug]: Loss of active material for primary and secondary material missing in solution variable #4822

Open
satishrapol opened this issue Feb 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@satishrapol
Copy link

satishrapol commented Feb 7, 2025

PyBaMM Version

v25.1.1

Python Version

3.11.9

Describe the bug

Hello,

I am using the composite electrode notebook.
https://docs.pybamm.org/en/stable/source/examples/notebooks/models/composite_particle.html

I am trying to access the loss of active primary and secondary material from the solution instance, e.g.,

solution[0]["Loss of primary active material in negative electrode [%]"].entries

I am getting the following error

KeyError: "'Loss of primary active material in negative electrode [%]' not found. Best matches are ['Loss of active material in negative electrode [%]', 'Loss of active material in positive electrode [%]', 'Loss of lithium due to loss of primary active material in negative electrode [mol]']"

Regards,
Satish

Steps to Reproduce

use this notebook

https://docs.pybamm.org/en/stable/source/examples/notebooks/models/composite_particle.html

and try to access the following variable from the solution instance e.g.
solution[0]["Loss of primary active material in negative electrode [%]"].entries

Relevant log output

@satishrapol satishrapol added the bug Something isn't working label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant