You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a binary operator, such as +, is invoked with 2 concatenations (i.e. isinstance(left, pybamm.Concatenation) and isinstance(right, pybamm.Concatenation) == True), and the concatenations have a different number of orphans, the "extra orphans" are dropped. This can be easily seen here.
This is causing reaction heating to not be present in DFN half-cell models (see comments in #4557)
Steps to Reproduce
no MWE yet, but should be self evident in the code.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
I think there are two different options for "solving" this:
Raise an error when this situation occurs
Pass the identity of the "unmatched orphans".
I implemented (1) to check how impactful it will be, and the only test that fails is the specific case I found this bug in: Half-cell DFN models. Therefore, I am of the opinion that we should implement (1) and fix the underlying issue that causes it in the half-cell case.
PyBaMM Version
develop
Python Version
3.12
Describe the bug
If a binary operator, such as
+
, is invoked with 2 concatenations (i.e.isinstance(left, pybamm.Concatenation) and isinstance(right, pybamm.Concatenation) == True
), and the concatenations have a different number of orphans, the "extra orphans" are dropped. This can be easily seen here.This is causing reaction heating to not be present in DFN half-cell models (see comments in #4557)
Steps to Reproduce
no MWE yet, but should be self evident in the code.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: