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
I am trying to run a drive cycle simulation. The model was working fine last week, but starting from this week, I am getting the following error: "Cannot find shape (original error: operands could not be broadcast together with shapes (60,1) (41,1)".
I am currently using the form - parameters["Current function [A]"] = pb.Interpolant(driveCycle[:, 0], driveCycle[:, 1], pb.t, extrapolate=True).
When I change the mesh size, I get the following error instead: <class 'pybamm.expression_tree.broadcasts.PrimaryBroadcast'> does not implement _unary_evaluate.
When I switch it to a constant current value for the current function, the model runs fine again. What could be causing this issue? I am pretty sure I did not change anything to the parameter set/solver setting that I was using last week.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to run a drive cycle simulation. The model was working fine last week, but starting from this week, I am getting the following error:
"Cannot find shape (original error: operands could not be broadcast together with shapes (60,1) (41,1)"
.I am currently using the form -
parameters["Current function [A]"] = pb.Interpolant(driveCycle[:, 0], driveCycle[:, 1], pb.t, extrapolate=True)
.When I change the mesh size, I get the following error instead:
<class 'pybamm.expression_tree.broadcasts.PrimaryBroadcast'> does not implement _unary_evaluate
.When I switch it to a constant current value for the current function, the model runs fine again. What could be causing this issue? I am pretty sure I did not change anything to the parameter set/solver setting that I was using last week.
Beta Was this translation helpful? Give feedback.
All reactions