Issue with pybamm.DefiniteIntegralVector causing ShapeError #5233
              
                Unanswered
              
          
                  
                    
                      FaissalOSU
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am working on building a submodel in PyBaMM. Everything in the submodel works as expected until I reach the following line:
pressure = pybamm.DefiniteIntegralVector(pressure_gradient)
This line causes the following error:
pybamm.expression_tree.exceptions.ShapeError: Cannot find shape
(original error: operands could not be broadcast together with shapes (19,1) (21,1))
I have double-checked, and all shapes and domains appear consistent.
Below is the relevant portion of the code for context:
Has anyone encountered a similar issue with DefiniteIntegralVector? Any suggestions on how to resolve this shape mismatch while keeping the calculation fully symbolic would be greatly appreciated.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions