Skip to content

Adding decomposed FoKL GPs into PyBOP - #978

Merged
NicolaCourtier merged 25 commits into
pybop-team:developfrom
derek-slack:develop
Nov 24, 2026
Merged

NicolaCourtier merged 25 commits into
pybop-team:developfrom
derek-slack:develop

Conversation

@derek-slack

@derek-slack derek-slack commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

This push adds the ability to create FoKL GPs as parameter functions of the state of the cell.

Fixes #972

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

@derek-slack

Copy link
Copy Markdown
Contributor Author

I fixed the issue where the end user needed to use indices to call function inputs instead of strings:

User can now select from the set of passed children to the function by referencing the string in the Arguments options i.e:
GP_options = {'Arguments': ['Concentration in electrolyte [mol.m-3]']}
or similarly for division arguments:
GP_options = {'Arguments': [['Concentration in electrode [mol.m-3]',['Maximum concentration in electrode [mol.m-3]']]}

Comment thread pyproject.toml Resolved
Co-authored-by: NicolaCourtier <45851982+NicolaCourtier@users.noreply.github.com>
@codecov

codecov Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.59155% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.53%. Comparing base (64c6ca0) to head (586acee).
⚠️ Report is 19 commits behind head on develop.

Files with missing lines Patch % Lines
pybop/parameters/gp_parameter.py 98.58% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #978      +/-   ##
===========================================
+ Coverage    93.32%   93.53%   +0.20%     
===========================================
  Files           84       85       +1     
  Lines         6842     7172     +330     
===========================================
+ Hits          6385     6708     +323     
- 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 self-requested a review November 13, 2026 16:57

@NicolaCourtier NicolaCourtier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @derek-slack, this looks great! Thanks for sharing a nice example, I have shortened it for readability and easier maintenance. A couple of requests:

  1. Would it be possible to show a plot of the estimated electrolyte diffusivity at the end of the example, versus the constant value?
  2. Please could you expand the description a bit and perhaps add a link/citation to the definition of a "FoKL GP" at the top of the example?

Thanks!

@NicolaCourtier
NicolaCourtier merged commit 5f9f151 into pybop-team:develop Nov 24, 2026
34 checks passed
@derek-slack

Copy link
Copy Markdown
Contributor Author

Thanks all!

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.

Decomposed Gaussian Processes for parameter estimation

3 participants