Skip to content

Commit

Permalink
pybamm-team#983 added copy and fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed Aug 3, 2020
1 parent 40d49d6 commit b40c266
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,6 @@ def __init__(
"Terminal voltage": voltage + vdrop_Li,
"Terminal voltage [V]": voltage_dim + vdrop_Li_dim,
}

def new_copy(self, build=False):
return pybamm.BaseModel.new_copy(self)
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ def test_dfn_half_cell_well_posed(self):
model = pybamm.lithium_ion.BasicDFNHalfCell(options=options)
model.check_well_posedness()

# copy = model.new_copy()
# copy.check_well_posedness()
copy = model.new_copy()
copy.check_well_posedness()

options = {"working electrode": "negative"}
model = pybamm.lithium_ion.BasicDFNHalfCell(options=options)
model.check_well_posedness()

# copy = model.new_copy()
# copy.check_well_posedness()
copy = model.new_copy()
copy.check_well_posedness()


if __name__ == "__main__":
Expand Down

0 comments on commit b40c266

Please sign in to comment.