Skip to content

Commit

Permalink
Merge pull request #234 from pybop-team/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
chore: update pre-commit hooks
  • Loading branch information
BradyPlanden authored Mar 13, 2024
2 parents da016b4 + 2b238e4 commit a006764
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.2.2"
rev: "v0.3.2"
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand Down
1 change: 1 addition & 0 deletions docs/_extension/gallery_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Credit: PyData Sphinx Theme
"""

from pathlib import Path
from typing import Any, Dict, List

Expand Down
8 changes: 3 additions & 5 deletions pybop/parameters/parameter_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ def _handle_special_cases(self):
"Open-circuit voltage [V]" in self.params
and self.params["Open-circuit voltage [V]"] == "default"
):
self.params[
"Open-circuit voltage [V]"
] = pybop.empirical.Thevenin().default_parameter_values[
"Open-circuit voltage [V]"
]
self.params["Open-circuit voltage [V]"] = (
pybop.empirical.Thevenin().default_parameter_values["Open-circuit voltage [V]"]
)

def export_parameters(self, output_json_path, fit_params=None):
"""
Expand Down

0 comments on commit a006764

Please sign in to comment.