pybamm-team / PyBaMM

Fast and flexible physics-based battery models in Python
https://www.pybamm.org/
BSD 3-Clause "New" or "Revised" License
1.08k stars 533 forks source link

[Bug]: latexify issue while displaying lithium plating equations #4218

Open pkalbhor opened 3 months ago

pkalbhor commented 3 months ago

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