Commit 6ff7848
Observe custom variables after solving + faster simulation build time (pybamm-team#5308)
* Don't be too strict with func_args longer than symbol.children
* Add a test
* Add support for uniform grid sizing across subdomains (pybamm-team#720) (pybamm-team#5253)
Co-authored-by: Valentin Sulzer <valentinsulzer@hotmail.com>
* Fix typo in Butler-Volmer equation docstring (pybamm-team#5279)
* fix bug with bulk ocp lithiation (pybamm-team#5280)
* doc: fix typo in concentration description in notebook (pybamm-team#5284)
* Fix typo in concentration description in notebook
* Add CHANGELOG.md entry for typo fix
* Remove unneccesary changelog entry
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
---------
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
* fix: instruct uv to install into system for CI (pybamm-team#5288)
* Fix `InputParameter` serialisation (pybamm-team#5289)
* fix `InputParameter` serialisation
* Update CHANGELOG.md
* Bugfix: inputs for `initial_conditions_from` scale evaluation (pybamm-team#5285)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add `silence_sundials_errors` solver option (pybamm-team#5290)
* feat: add`silence_sundial_warnings` solver option
* refactor: `silence_sundials_warnings` -> `silence_sundials_errors`
* Update C-Rate current for changing nominal capacity (pybamm-team#5286)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Update `IDAKLUSolver` error handling (pybamm-team#5291)
* raise `SolverError` at failure to init sundials
* Update simulation.py
* Update idaklu_solver.py
* reuse `pybammsolvers` error messages
* Update test_idaklu_solver.py
* bump `pybammsolvers`
* Update CHANGELOG.md
* Update CHANGELOG.md
Update CHANGELOG.md
* revive `SymbolReplacer`
* add `VariableReplacementMap`
* Create replace_symbols.rst
* Update index.rst
* cleanup
* attach `parameter_values` to model for lazy post-processing
* update `model.parameter_values` serialization
* Update test_serialisation.py
* Update test_parameter_values.py
* add `observe` to solution for lazy evaluation of discretized symbols
* Update test_solution.py
* style
* Update CHANGELOG.md
* fix docstrings
* docs
* docs2
* Update replace_symbols.py
* Update replace_symbols.py
* remove `SymbolReplacer`
* add slots to `SpatialMethod` for memory
* add `SymbolProcessor` for `BaseModel` symbol eval
* add `ModelSolutionObservability` enums for `BaseModel`
* parameter_values: delay variable processing
* fix stale symbol id: use `scale` and `reference` setters
* discretisation delayed var processing, don't overwrite `model.variables`
* pass `delayed_variable_processing` args through `process_model`
* add `DUMMY_INPUT_PARAMETER_VALUE` const
* Update __init__.py
* Update index.rst
* Delete replace_symbols.py
* update symbol `scale` and `reference` setters
* update variable hash
* explicit `_variables_processed` base model attribute
* use `get_processed_variable_or_event` getter
* copy model in `Simulation`
* disable observability with `output_variables`
* delay variable processing in `Simulation` build
* add `Solution.observe(symbol)`
* update serialization
* update examples
* Update CONTRIBUTING.md
* Update CHANGELOG.md
* add observe tests
* update serialization tests
* Update test_base_model.py
* update symbol processor getters
* add model observability tests
* update symbol and base variable id setters
* Update symbol_processor.py
* Update CHANGELOG.md
* fix model serialization notebook
* Update symbol_processor.py
* remove unused serialisation methods
* remove debug statement
* update observe test comments
* add observe test failure for new parameters
* remove `_solution_observable` from custom model serialization
* fix observe test error
* set `DUMMY_INPUT_PARAMETER_VALUE = np.nan` to make errors more obvious
---------
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
Co-authored-by: Swasti Mishra <140950062+swastim01@users.noreply.github.com>
Co-authored-by: Valentin Sulzer <valentinsulzer@hotmail.com>
Co-authored-by: Chase Naples <cnaples79@gmail.com>
Co-authored-by: Robert Timms <43040151+rtimms@users.noreply.github.com>
Co-authored-by: Gregor Decristoforo <gregor.decristoforo@gmail.com>
Co-authored-by: Pip Liggins <philippa.liggins@dtc.ox.ac.uk>
Co-authored-by: Brady Planden <55357039+BradyPlanden@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent a0b2614 commit 6ff7848
40 files changed
Lines changed: 2657 additions & 724 deletions
File tree
- docs/source
- api/models/base_models
- examples/notebooks
- getting_started
- models
- examples/scripts/compare_comsol
- src/pybamm
- discretisations
- experiment/step
- expression_tree
- operations
- models
- parameters
- plotting
- solvers
- spatial_methods
- tests
- integration
- test_models
- test_solvers
- unit
- test_discretisations
- test_expression_tree
- test_models
- test_full_battery_models
- test_parameters
- test_serialisation
- test_solvers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 668 additions & 82 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 39 deletions
Large diffs are not rendered by default.
Lines changed: 254 additions & 76 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments