PyBaMM icon indicating copy to clipboard operation
PyBaMM copied to clipboard

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

Open satishrapol opened this issue 10 months ago • 1 comments

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 avatar Feb 07 '25 11:02 satishrapol

Hi! I noticed this issue is assigned but hasn’t had any activity since February. If the original assignee is no longer working on it, I’d be happy to take this on. Please let me know if it’s okay for me to proceed. Thanks.

aaryan-iiitu avatar Dec 04 '25 11:12 aaryan-iiitu