-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/develop' into 464-design-updating
# Conflicts: # examples/notebooks/spm_electrode_design.ipynb
- Loading branch information
Showing
28 changed files
with
3,562 additions
and
7,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Examples | ||
|
||
This directory contains example notebooks and scripts demonstrating how to use PyBOP. | ||
|
||
## Directory Structure | ||
|
||
- `notebooks/`: Jupyter notebooks of example functionality with explanations | ||
- `scripts/`: Python scripts for quick reference and command-line usage | ||
- `standalone/`: Example scripts for using standalone classes | ||
|
||
## Notebooks | ||
|
||
The `notebooks/` directory contains Jupyter notebooks that provide detailed, interactive examples of various features and use cases. These notebooks include explanations, code snippets, and visualisations. | ||
|
||
To view the notebooks with interactive figures without downloading the repository, please use nbviewer: | ||
|
||
<div align="center"> | ||
|
||
[Notebooks on nbviewer](https://nbviewer.org/github/pybop-team/PyBOP/tree/develop/examples/notebooks/) | ||
|
||
</div> | ||
|
||
## Scripts | ||
|
||
The `scripts/` directory contains standalone Python scripts that demonstrate specific tasks or workflows. These scripts are designed for quick reference and can be run directly from the command line. | ||
|
||
## Getting Started | ||
|
||
1. Clone the repository: `git clone https://github.com/pybop-team/pybop.git` | ||
2. Navigate to the examples directory: `cd pybop/examples` | ||
3. Explore the notebooks and scripts in their respective directories. | ||
4. To run the Jupyter notebooks locally: | ||
- Install Jupyter: `pip install jupyter` | ||
- Start Jupyter Notebook: `jupyter notebook` | ||
- Navigate to the `notebooks/` directory and open the desired notebook | ||
|
||
5. To run the Python scripts: | ||
- Install PyBOP: `pip install pybop` | ||
- Run a script using Python: `python scripts/script_name.py` | ||
|
||
## Contributing | ||
|
||
If you have additional examples or improvements to existing ones, please feel free to submit a pull request. We appreciate your contributions! |
1,254 changes: 170 additions & 1,084 deletions
1,254
examples/notebooks/LG_M50_ECM/1-single-pulse-circuit-model.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
213 changes: 161 additions & 52 deletions
213
examples/notebooks/equivalent_circuit_identification.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
1,913 changes: 150 additions & 1,763 deletions
1,913
examples/notebooks/multi_model_identification.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
1,458 changes: 1,210 additions & 248 deletions
1,458
examples/notebooks/multi_optimiser_identification.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,103 changes: 174 additions & 1,929 deletions
2,103
examples/notebooks/pouch_cell_identification.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.