Skip to content

Commit

Permalink
#1611 codacy and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Aug 17, 2021
1 parent 1328d84 commit b2e8670
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pybamm/experiments/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def read_operating_conditions(self, operating_conditions, drive_cycles):
"""
converted_operating_conditions = []
events = []
for idx, cond in enumerate(operating_conditions):
for cond in operating_conditions:
next_op, next_event = self.read_string(cond, drive_cycles)
converted_operating_conditions.append(next_op)
events.append(next_event)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ def test_well_posed_power(self):
model = pybamm.lithium_ion.SPM(options)
model.check_well_posedness()

def test_well_posed_cccv(self):
options = {"operating mode": "CCCV"}
model = pybamm.lithium_ion.SPM(options)
model.check_well_posedness()

def test_well_posed_function(self):
def external_circuit_function(variables):
I = variables["Current [A]"]
Expand Down

0 comments on commit b2e8670

Please sign in to comment.