Skip to content

Commit c161138

Browse files
committed
trigger workflow tutorials
1 parent eb78831 commit c161138

File tree

14 files changed

+25
-28
lines changed

14 files changed

+25
-28
lines changed

.github/workflows/export_tutorials.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
- "**" # Run on push on all branches
77
paths:
88
- 'tutorials/**/*.ipynb'
9-
workflow_dispatch:
10-
branches:
11-
- "**" # Run on push on all branches
129
jobs:
1310
export_tutorials:
1411
permissions: write-all

tutorials/tutorial1/tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
{
8282
"cell_type": "code",
83-
"execution_count": 1,
83+
"execution_count": null,
8484
"id": "2373a925",
8585
"metadata": {},
8686
"outputs": [],
@@ -89,7 +89,7 @@
8989
"try:\n",
9090
" import google.colab\n",
9191
"\n",
92-
" IN_COLAB = True\n",
92+
" IN_COLAB = True \n",
9393
"except:\n",
9494
" IN_COLAB = False\n",
9595
"if IN_COLAB:\n",

tutorials/tutorial10/tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
{
2121
"cell_type": "code",
22-
"execution_count": 1,
22+
"execution_count": null,
2323
"metadata": {},
2424
"outputs": [],
2525
"source": [
@@ -31,7 +31,7 @@
3131
"except:\n",
3232
" IN_COLAB = False\n",
3333
"if IN_COLAB:\n",
34-
" !pip install \"pina-mathlab\"\n",
34+
" !pip install \"pina-mathlab\" \n",
3535
" # get the data\n",
3636
" !mkdir \"data\"\n",
3737
" !wget \"https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial10/data/Data_KS.mat\" -O \"data/Data_KS.mat\"\n",

tutorials/tutorial11/tutorial.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
{
2121
"cell_type": "code",
22-
"execution_count": 1,
22+
"execution_count": null,
2323
"metadata": {},
2424
"outputs": [],
2525
"source": [
@@ -36,9 +36,9 @@
3636
"import warnings\n",
3737
"\n",
3838
"from pina import Condition, Trainer\n",
39-
"from pina.solver import PINN\n",
39+
"from pina.solver import PINN \n",
4040
"from pina.model import FeedForward\n",
41-
"from pina.problem import SpatialProblem\n",
41+
"from pina.problem import SpatialProblem \n",
4242
"from pina.operator import grad\n",
4343
"from pina.domain import CartesianDomain\n",
4444
"from pina.equation import Equation, FixedValue\n",

tutorials/tutorial13/tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
{
2121
"cell_type": "code",
22-
"execution_count": 1,
22+
"execution_count": null,
2323
"metadata": {},
2424
"outputs": [],
2525
"source": [
@@ -38,7 +38,7 @@
3838
"import warnings\n",
3939
"\n",
4040
"from pina import Condition, Trainer\n",
41-
"from pina.problem import SpatialProblem\n",
41+
"from pina.problem import SpatialProblem \n",
4242
"from pina.operator import laplacian\n",
4343
"from pina.solver import PINN, SelfAdaptivePINN as SAPINN\n",
4444
"from pina.loss import LpLoss\n",

tutorials/tutorial14/tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
{
2929
"cell_type": "code",
30-
"execution_count": 1,
30+
"execution_count": null,
3131
"metadata": {},
3232
"outputs": [],
3333
"source": [
@@ -39,7 +39,7 @@
3939
"except:\n",
4040
" IN_COLAB = False\n",
4141
"if IN_COLAB:\n",
42-
" !pip install \"pina-mathlab\"\n",
42+
" !pip install \"pina-mathlab\" \n",
4343
"\n",
4444
"%matplotlib inline\n",
4545
"\n",

tutorials/tutorial2/tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"if IN_COLAB:\n",
3232
" !pip install \"pina-mathlab\"\n",
3333
"\n",
34-
"import torch\n",
34+
"import torch \n",
3535
"import matplotlib.pyplot as plt\n",
3636
"import warnings\n",
3737
"\n",

tutorials/tutorial3/tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
{
1818
"cell_type": "code",
19-
"execution_count": 1,
19+
"execution_count": null,
2020
"id": "d93daba0",
2121
"metadata": {},
2222
"outputs": [],
@@ -28,7 +28,7 @@
2828
" IN_COLAB = True\n",
2929
"except:\n",
3030
" IN_COLAB = False\n",
31-
"if IN_COLAB:\n",
31+
"if IN_COLAB: \n",
3232
" !pip install \"pina-mathlab\"\n",
3333
"\n",
3434
"import torch\n",

tutorials/tutorial4/tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"if IN_COLAB:\n",
4444
" !pip install \"pina-mathlab\"\n",
4545
"\n",
46-
"import torch\n",
46+
"import torch \n",
4747
"import matplotlib.pyplot as plt\n",
4848
"import torchvision # for MNIST dataset\n",
4949
"import warnings\n",

tutorials/tutorial5/tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"cell_type": "code",
24-
"execution_count": 1,
24+
"execution_count": null,
2525
"id": "5f2744dc",
2626
"metadata": {
2727
"ExecuteTime": {
@@ -46,7 +46,7 @@
4646
"\n",
4747
"import torch\n",
4848
"import matplotlib.pyplot as plt\n",
49-
"import warnings\n",
49+
"import warnings \n",
5050
"\n",
5151
"# !pip install scipy # install scipy\n",
5252
"from scipy import io\n",

0 commit comments

Comments
 (0)