Skip to content

Commit 2ed61f9

Browse files
authored
Merge pull request #89 from CUQI-DTU/fenics_example
FEniCS notebook update. Update note on pre-run notebooks with new style
2 parents 49dbc38 + b1252c0 commit 2ed61f9

File tree

5 files changed

+67
-51
lines changed

5 files changed

+67
-51
lines changed

chapter01/overview_of_cuqipy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ CUQIpy is built to address the need for:
4040
* CUQIpy consists of many modules for modeling, solving, and analyzing Bayesian inverse problems.
4141
* These modules mostly correspond to typical components/tools needed for modeling and solving Bayesian inverse problems.
4242
* Each module contains classes and functions that are used to perform specific tasks.
43-
* click [here](https://cuqi-dtu.github.io/CUQIpy/api/index.html) for an overview of the modules available in CUQIpy.
43+
* Click [here](https://cuqi-dtu.github.io/CUQIpy/api/index.html) for an overview of the modules available in CUQIpy.
4444

4545
![CUQIpy modules](../images/cuqipy_modules.png)
4646

4747
## CUQIpy plugins <a class="anchor" id="r-cuqipy-plugins"></a>
4848

4949
* In addition to the CUQIpy modules, CUQIpy also has plugins that extend the functionality of the framework.
5050
* These plugins allow integration of third-party software and tools with CUQIpy.
51-
* click [here](https://cuqi-dtu.github.io/CUQIpy/#cuqipy-plugins) to see the list of plugins available in CUQIpy.
51+
* Click [here](https://cuqi-dtu.github.io/CUQIpy/#cuqipy-plugins) to see the list of plugins available in CUQIpy.
5252

5353
![CUQIpy plugins](../images/cuqipy_modules_plugin.png)
5454

chapter04/PDE/core_pde.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
"source": [
88
"# Solving PDE-based BIP using core CUQIpy\n",
99
"\n",
10-
"**note**:\n",
11-
"- This notebook was run on a local machine and not using github actions for this book due to its long execution time.\n",
1210
"\n",
1311
"Here we build a Bayesian problem in which the forward model is a partial differential equation (PDE) model, the 1D heat problem in particular.\n",
1412
"\n",
@@ -33,7 +31,13 @@
3331
"metadata": {},
3432
"source": [
3533
"<div style=\"border: 2px solid #FFB74D; background-color: #FFF3E0; border-radius: 8px; padding: 10px; font-family: Arial, sans-serif; color: #333; box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); max-width: 750px; margin: 0 auto;\">\n",
36-
" <strong style=\"color: #E65100;\">⚠️ Note:</strong> This notebook uses MCMC samplers from the new <code>cuqi.experimental.mcmc</code> module, which are expected to become the default soon. Check out the <a href=\"https://cuqi-dtu.github.io/CUQIpy/api/_autosummary/cuqi.experimental.mcmc.html#module-cuqi.experimental.mcmc\">documentation</a> for more details.\n",
34+
" <strong style=\"color: #E65100;\">⚠️ Note:</strong> \n",
35+
" \n",
36+
" - This notebook was run on a local machine and not using github actions for this book due to its long execution time.\n",
37+
"\n",
38+
" - This notebook uses MCMC samplers from the new <code>cuqi.experimental.mcmc</code> module, which are expected to become the default soon. Check out the <a href=\"https://cuqi-dtu.github.io/CUQIpy/api/_autosummary/cuqi.experimental.mcmc.html#module-cuqi.experimental.mcmc\">documentation</a> for more details.\n",
39+
"\n",
40+
"\n",
3741
"</div>"
3842
]
3943
},

chapter04/Plugins/CUQIpy-CIL/demo_ct.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
"id": "99cf022a-d1d1-4adf-bbe5-798f0853833f",
1616
"metadata": {},
1717
"source": [
18-
"**note**: \n",
19-
"- This notebook was run on some machine and not using github actions for this book. To run this notebook on your machine, you need to have [CUQIpy-CIL installed](https://github.com/CUQI-DTU/CUQIpy-CIL).\n",
20-
"\n",
2118
"[The Core Imaging Library (CIL)](https://www.ccpi.ac.uk/cil) is an open-source python library for processing and reconstruction of CT data (and other inverse problems).\n",
2219
"\n",
2320
"\n",
@@ -41,7 +38,12 @@
4138
"metadata": {},
4239
"source": [
4340
"<div style=\"border: 2px solid #FFB74D; background-color: #FFF3E0; border-radius: 8px; padding: 10px; font-family: Arial, sans-serif; color: #333; box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); max-width: 750px; margin: 0 auto;\">\n",
44-
" <strong style=\"color: #E65100;\">⚠️ Note:</strong> This notebook uses MCMC samplers from the new <code>cuqi.experimental.mcmc</code> module, which are expected to become the default soon. Check out the <a href=\"https://cuqi-dtu.github.io/CUQIpy/api/_autosummary/cuqi.experimental.mcmc.html#module-cuqi.experimental.mcmc\">documentation</a> for more details.\n",
41+
" <strong style=\"color: #E65100;\">⚠️ Note:</strong> \n",
42+
" \n",
43+
"- This notebook was run on some machine and not using github actions for this book. To run this notebook on your machine, you need to have [CUQIpy-CIL installed](https://github.com/CUQI-DTU/CUQIpy-CIL).\n",
44+
"\n",
45+
"- This notebook uses MCMC samplers from the new <code>cuqi.experimental.mcmc</code> module, which are expected to become the default soon. Check out the <a href=\"https://cuqi-dtu.github.io/CUQIpy/api/_autosummary/cuqi.experimental.mcmc.html#module-cuqi.experimental.mcmc\">documentation</a> for more details.\n",
46+
"\n",
4547
"</div>"
4648
]
4749
},

chapter04/Plugins/CUQIpy-FEniCS/poisson_2D_fenics.ipynb

Lines changed: 43 additions & 38 deletions
Large diffs are not rendered by default.

chapter04/Plugins/CUQIpy-PyTorch/hmc.ipynb

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"source": [
88
"# Hamiltonian Monte Carlo with CUQIpy-PyTorch\n",
99
"\n",
10-
"**note**: \n",
11-
"- This notebook was run on some machine and not using github actions for this book. To run this notebook on your machine, you need to have [CUQIpy-PyTorch installed](https://github.com/CUQI-DTU/CUQIpy-PyTorch).\n",
10+
"\n",
1211
"\n",
1312
"In this notebook, we use [CUQIpy-PyTorch](https://github.com/CUQI-DTU/CUQIpy-PyTorch) to extend CUQIpy by adding the ability to use PyTorch as a backend for array operations. PyTorch enables two main things: 1) GPU acceleration and 2) automatic differentiation. GPU acceleration is self-explanatory, but automatic differentiation deserves some explanation.\n",
1413
"\n",
@@ -43,7 +42,13 @@
4342
"metadata": {},
4443
"source": [
4544
"<div style=\"border: 2px solid #FFB74D; background-color: #FFF3E0; border-radius: 8px; padding: 10px; font-family: Arial, sans-serif; color: #333; box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); max-width: 750px; margin: 0 auto;\">\n",
46-
" <strong style=\"color: #E65100;\">⚠️ Note:</strong> This notebook uses MCMC samplers from the new <code>cuqi.experimental.mcmc</code> module, which are expected to become the default soon. Check out the <a href=\"https://cuqi-dtu.github.io/CUQIpy/api/_autosummary/cuqi.experimental.mcmc.html#module-cuqi.experimental.mcmc\">documentation</a> for more details.\n",
45+
" <strong style=\"color: #E65100;\">⚠️ Note:</strong> \n",
46+
"\n",
47+
"- This notebook was run on some machine and not using github actions for this book. To run this notebook on your machine, you need to have [CUQIpy-PyTorch installed](https://github.com/CUQI-DTU/CUQIpy-PyTorch).\n",
48+
" \n",
49+
"- This notebook uses MCMC samplers from the new <code>cuqi.experimental.mcmc</code> module, which are expected to become the default soon. Check out the <a href=\"https://cuqi-dtu.github.io/CUQIpy/api/_autosummary/cuqi.experimental.mcmc.html#module-cuqi.experimental.mcmc\">documentation</a> for more details.\n",
50+
"\n",
51+
"\n",
4752
"</div>"
4853
]
4954
},
@@ -1320,7 +1325,7 @@
13201325
"name": "python",
13211326
"nbconvert_exporter": "python",
13221327
"pygments_lexer": "ipython3",
1323-
"version": "3.12.4"
1328+
"version": "3.9.16"
13241329
},
13251330
"orig_nbformat": 4,
13261331
"vscode": {

0 commit comments

Comments
 (0)