Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 29, 2023
1 parent 3089f37 commit beafc24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ The easiest way to use PyBaMM is to run a 1C constant-current discharge with a m

```python3
import pybamm

model = pybamm.lithium_ion.DFN() # Doyle-Fuller-Newman model
sim = pybamm.Simulation(model)
sim.solve([0, 3600]) # solve for 1 hour
Expand All @@ -64,13 +65,16 @@ or simulate an experiment such as a constant-current discharge followed by a con

```python3
import pybamm

experiment = pybamm.Experiment(
[
("Discharge at C/10 for 10 hours or until 3.3 V",
"Rest for 1 hour",
"Charge at 1 A until 4.1 V",
"Hold at 4.1 V until 50 mA",
"Rest for 1 hour")
(
"Discharge at C/10 for 10 hours or until 3.3 V",
"Rest for 1 hour",
"Charge at 1 A until 4.1 V",
"Hold at 4.1 V until 50 mA",
"Rest for 1 hour",
)
]
* 3,
)
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Note that benchmark functions _must_ start with the prefix `time_`, for instance

```python3
def time_solve_SPM_ScipySolver(self):
solver = pb.ScipySolver()
solver.solve(self.model, [0, 3600])
solver = pb.ScipySolver()
solver.solve(self.model, [0, 3600])
```

In the case where some setup is necessary, but should not be timed, a `setup` function
Expand All @@ -76,7 +76,7 @@ class TimeSPM:
model = pb.lithium_ion.SPM()
geometry = model.default_geometry

# ...
# ...

self.model = model

Expand Down

0 comments on commit beafc24

Please sign in to comment.