From 3ec4f82c66648cb31439f6f1738555ff96293cb6 Mon Sep 17 00:00:00 2001 From: "jiabin.wang" Date: Fri, 5 Apr 2024 15:57:05 +0100 Subject: [PATCH 1/4] update base_solver.step --- pybamm/solvers/base_solver.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pybamm/solvers/base_solver.py b/pybamm/solvers/base_solver.py index fb4865358d..48aa19d491 100644 --- a/pybamm/solvers/base_solver.py +++ b/pybamm/solvers/base_solver.py @@ -1117,9 +1117,8 @@ def step( npts : deprecated inputs : dict, optional Any input parameters to pass to the model when solving - save : bool - Turn on to store the solution of all previous timesteps - + save : bool, optional + Save solution with all previous timesteps. Defaults to True. Raises ------ :class:`pybamm.ModelError` From bac929455e2cac172f3e086f13bc26b96ea99920 Mon Sep 17 00:00:00 2001 From: "jiabin.wang" Date: Fri, 5 Apr 2024 15:59:11 +0100 Subject: [PATCH 2/4] update base_solver.solve --- pybamm/solvers/base_solver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pybamm/solvers/base_solver.py b/pybamm/solvers/base_solver.py index 48aa19d491..82d6159769 100644 --- a/pybamm/solvers/base_solver.py +++ b/pybamm/solvers/base_solver.py @@ -710,16 +710,16 @@ def solve( The model whose solution to calculate. Must have attributes rhs and initial_conditions. All calls to solve must pass in the same model or an error is raised - t_eval : numeric type - The times (in seconds) at which to compute the solution + t_eval : None, list or ndarray, optional + The times (in seconds) at which to compute the solution. Defaults to None. inputs : dict or list, optional A dictionary or list of dictionaries describing any input parameters to pass to the model when solving nproc : int, optional Number of processes to use when solving for more than one set of input parameters. Defaults to value returned by "os.cpu_count()". - calculate_sensitivities : list of str or bool - If true, solver calculates sensitivities of all input parameters. + calculate_sensitivities : list of str or bool, optional + Whether the solver calculates sensitivities of all input parameters. Defaults to False. If only a subset of sensitivities are required, can also pass a list of input parameter names From 63b8e8f2b4afc498463c70f5fa9d5906a8872c1a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:43:16 -0400 Subject: [PATCH 3/4] Bump codecov/codecov-action from 4.1.1 to 4.2.0 in the actions group (#3971) Bumps the actions group with 1 update: [codecov/codecov-action](https://github.com/codecov/codecov-action). Updates `codecov/codecov-action` from 4.1.1 to 4.2.0 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v4.1.1...v4.2.0) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/run_periodic_tests.yml | 2 +- .github/workflows/test_on_push.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_periodic_tests.yml b/.github/workflows/run_periodic_tests.yml index 5b3fedd6c8..dec5de094b 100644 --- a/.github/workflows/run_periodic_tests.yml +++ b/.github/workflows/run_periodic_tests.yml @@ -102,7 +102,7 @@ jobs: - name: Upload coverage report if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11 - uses: codecov/codecov-action@v4.1.1 + uses: codecov/codecov-action@v4.2.0 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test_on_push.yml b/.github/workflows/test_on_push.yml index b5b6ec0de4..e97cb76603 100644 --- a/.github/workflows/test_on_push.yml +++ b/.github/workflows/test_on_push.yml @@ -174,7 +174,7 @@ jobs: run: python -m nox -s coverage - name: Upload coverage report - uses: codecov/codecov-action@v4.1.1 + uses: codecov/codecov-action@v4.2.0 with: token: ${{ secrets.CODECOV_TOKEN }} From c204bdd891d886c955b01bc14049ace5167ed2c3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:29:02 -0400 Subject: [PATCH 4/4] chore: update pre-commit hooks (#3972) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5f971c7a7c..5861324503 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: additional_dependencies: [black==23.*] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-case-conflict