Skip to content

Commit c6e4e1b

Browse files
committed
Update links on examples folder, and others
Update links on examples folder, finite-volumes.ipynb, evaluvate_python.py, jax_bdf_solver.py, jax_solver.py
1 parent a00127b commit c6e4e1b

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

examples/notebooks/spatial_methods/finite-volumes.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,10 +1206,11 @@
12061206
]
12071207
},
12081208
{
1209+
"attachments": {},
12091210
"cell_type": "markdown",
12101211
"metadata": {},
12111212
"source": [
1212-
"Since this notebook is only an introduction to the discretisation, we have not covered everything. More advanced concepts, such as the ones below, can be explored by looking into the [API docs](https://pybamm.readthedocs.io/en/latest/source/spatial_methods/finite_volume.html).\n",
1213+
"Since this notebook is only an introduction to the discretisation, we have not covered everything. More advanced concepts, such as the ones below, can be explored by looking into the [API docs](https://pybamm.readthedocs.io/en/latest/source/api/solvers/index.html).\n",
12131214
"\n",
12141215
"- Gradient and divergence of microscale variables in the P2D model\n",
12151216
"- Indefinite integral\n",

pybamm/expression_tree/operations/evaluate_python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class JaxCooMatrix:
4040
def __init__(self, row, col, data, shape):
4141
if not pybamm.have_jax(): # pragma: no cover
4242
raise ModuleNotFoundError(
43-
"Jax or jaxlib is not installed, please see https://pybamm.readthedocs.io/en/latest/install/GNU-linux.html#optional-jaxsolver" # noqa: E501
43+
"Jax or jaxlib is not installed, please see https://pybamm.readthedocs.io/en/latest/source/user_guide/installation/GNU-linux.html#optional-jaxsolver" # noqa: E501
4444
)
4545

4646
self.row = jax.numpy.array(row)
@@ -537,7 +537,7 @@ class EvaluatorJax:
537537
def __init__(self, symbol):
538538
if not pybamm.have_jax(): # pragma: no cover
539539
raise ModuleNotFoundError(
540-
"Jax or jaxlib is not installed, please see https://pybamm.readthedocs.io/en/latest/install/GNU-linux.html#optional-jaxsolver" # noqa: E501
540+
"Jax or jaxlib is not installed, please see https://pybamm.readthedocs.io/en/latest/source/user_guide/installation/GNU-linux.html#optional-jaxsolver" # noqa: E501
541541
)
542542

543543
constants, python_str = pybamm.to_python(symbol, debug=False, output_jax=True)

pybamm/solvers/jax_bdf_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ def jax_bdf_integrate(func, y0, t_eval, *args, rtol=1e-6, atol=1e-6, mass=None):
10391039
"""
10401040
if not pybamm.have_jax():
10411041
raise ModuleNotFoundError(
1042-
"Jax or jaxlib is not installed, please see https://pybamm.readthedocs.io/en/latest/install/GNU-linux.html#optional-jaxsolver" # noqa: E501
1042+
"Jax or jaxlib is not installed, please see https://pybamm.readthedocs.io/en/latest/source/user_guide/installation/GNU-linux.html#optional-jaxsolver" # noqa: E501
10431043
)
10441044

10451045
def _check_arg(arg):

pybamm/solvers/jax_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(
6060
):
6161
if not pybamm.have_jax():
6262
raise ModuleNotFoundError(
63-
"Jax or jaxlib is not installed, please see https://pybamm.readthedocs.io/en/latest/install/GNU-linux.html#optional-jaxsolver" # noqa: E501
63+
"Jax or jaxlib is not installed, please see https://pybamm.readthedocs.io/en/latest/source/user_guide/installation/GNU-linux.html#optional-jaxsolver" # noqa: E501
6464
)
6565

6666
# note: bdf solver itself calculates consistent initial conditions so can set

0 commit comments

Comments
 (0)