PyBaMM icon indicating copy to clipboard operation
PyBaMM copied to clipboard

[Bug]: latexify issue while displaying lithium plating equations

Open pkalbhor opened this issue 2 years ago • 3 comments

PyBaMM Version

24.1

Python Version

3.10.13

Describe the bug

Gives error when try to display model with lithium plating option.

KeyError: 'min'

Steps to Reproduce

import pybamm
model = pybamm.lithium_ion.SPM(
                            options={
                                "lithium plating": "irreversible"
                                }
                            )
model.latexify()

Relevant log output

No response

pkalbhor avatar Jun 26 '24 11:06 pkalbhor

Hi! 👋 I'm new to PyBaMM and interested in contributing. I’d love to take up this issue and help resolve the LaTeX formatting for the lithium plating equations. Could you please assign this to me if it's still available?

Manimaran-tech avatar Aug 05 '25 16:08 Manimaran-tech

Done, @Manimaran-tech. Thanks for taking this on!

agriyakhetarpal avatar Aug 08 '25 22:08 agriyakhetarpal

Hi! I noticed this issue was still open and decided to look into it. I’ve implemented a fix and opened PR #5245, I'm open to any feedback or suggestions. Thanks.

swastim01 avatar Oct 28 '25 08:10 swastim01