Skip to content

Commit

Permalink
Update test_simulation.py (#4639)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcBerliner authored Dec 2, 2024
1 parent 7853ed5 commit 3bd5271
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_basic_ops(self):
assert V.has_symbol_of_classes(pybamm.Parameter)
assert not V.has_symbol_of_classes(pybamm.Matrix)

sim._set_parameters()
sim.set_parameters()
assert sim._mesh is None
assert sim._disc is None
V = sim.model_with_set_params.variables["Voltage [V]"]
Expand Down Expand Up @@ -138,8 +138,8 @@ def test_solve_already_partially_processed_model(self):
def test_reuse_commands(self):
sim = pybamm.Simulation(pybamm.lithium_ion.SPM())

sim._set_parameters()
sim._set_parameters()
sim.set_parameters()
sim.set_parameters()

sim.build()
sim.build()
Expand All @@ -149,7 +149,7 @@ def test_reuse_commands(self):

sim.build()
sim.solve([0, 600])
sim._set_parameters()
sim.set_parameters()

def test_set_crate(self):
model = pybamm.lithium_ion.SPM()
Expand Down

0 comments on commit 3bd5271

Please sign in to comment.