Skip to content

PyBaMM 25 breaks Pyodide/wasm compatibility #5126

@WhyNotYT

Description

@WhyNotYT

PyBaMM 25 no longer works with Pyodide, since solving now relies on the pybammsolvers package.
PyBaMM 24 still works because it could use CasADi directly.

I was able to get PyBaMM 25 working in Pyodide by patching 3 calls to pybammsolvers in processed_variable.py.

If PyBaMM is fully moving to pybammsolvers, it would be great to:

  • Maintain wasm/Pyodide compatibility, or

  • Provide a fallback to CasADi-only solving.

A wasm build of pybammsolvers would likely fix this.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions