Skip to content

Commit

Permalink
Get tests working
Browse files Browse the repository at this point in the history
  • Loading branch information
kratman committed Oct 14, 2024
1 parent 4d364c6 commit 47e0810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liionpack/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def generate_protocol_from_experiment(experiment):
if step_type not in ["Current", "Power"]:
raise ValueError("Only current operations are supported")
else:
if not step.is_drive_cycle:
if not isinstance(step.value, pybamm.Interpolant):
I = step.value
proto.extend([I] * int(np.round(t, 5) / np.round(dt, 5)))
if i == 0:
Expand Down

0 comments on commit 47e0810

Please sign in to comment.