Skip to content

Update simulator error catch - #1039

Merged
NicolaCourtier merged 4 commits into
developfrom
simulator-catch-errors
Nov 20, 2026
Merged

NicolaCourtier merged 4 commits into
developfrom
simulator-catch-errors

Conversation

@NicolaCourtier

Copy link
Copy Markdown
Member

Description

Skip the second attempt for single inputs and define _get_failed_solution.

Type of change

Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #).

Important checks:

Please confirm the following before marking the PR as ready for review:

  • No style issues: $ pre-commit run or $ nox -s pre-commit (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
  • All tests pass: nox -s tests
  • The documentation builds: nox -s doctest
  • Code is commented for hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.75862% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.32%. Comparing base (64c6ca0) to head (99857e8).
⚠️ Report is 16 commits behind head on develop.

Files with missing lines Patch % Lines
pybop/pybamm/simulator.py 78.57% 3 Missing ⚠️
pybop/pybamm/eis_simulator.py 83.33% 1 Missing ⚠️
pybop/simulators/base_simulator.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           develop    #1039    +/-   ##
=========================================
  Coverage    93.32%   93.32%            
=========================================
  Files           84       84            
  Lines         6842     6952   +110     
=========================================
+ Hits          6385     6488   +103     
- Misses         457      464     +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@NicolaCourtier
NicolaCourtier merged commit 88ae024 into develop Nov 20, 2026
33 of 34 checks passed
@NicolaCourtier
NicolaCourtier deleted the simulator-catch-errors branch November 20, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant