Skip to content

Commit db521ef

Browse files
AleDinvendem0
authored andcommitted
check on Colab option
1 parent a5e326c commit db521ef

File tree

11 files changed

+18
-14
lines changed

11 files changed

+18
-14
lines changed

docs/source/_rst/tutorials/tutorial10/tutorial.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ operations.
2424
IN_COLAB = False
2525
if IN_COLAB:
2626
!pip install "pina-mathlab"
27+
!mkdir "data"
28+
!wget "https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial10/data/Data_KS.mat" -O "data/Data_KS.mat"
29+
!wget "https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial10/data/Data_KS2.mat" -O "data/Data_KS2.mat"
30+
2731
2832
import torch
2933
import matplotlib.pyplot as plt

docs/source/_rst/tutorials/tutorial5/tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ First of all we import the modules needed for the tutorial. Importing
2424
!pip install "pina-mathlab"
2525
!pip install scipy
2626
# get the data
27-
!wget https://github.com/mathLab/PINA/blob/master/tutorials/tutorial5/Data_Darcy.mat
27+
!wget https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial5/Data_Darcy.mat
2828
2929
3030
# !pip install scipy # install scipy

docs/source/_rst/tutorials/tutorial7/tutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ In order to achieve both the goals we will need to define an
4848
!pip install "pina-mathlab"
4949
# get the data
5050
!mkdir "data"
51-
!wget "https://github.com/mathLab/PINA/blob/master/tutorials/tutorial7/data/pinn_solution_0.5_0.5" -O "data/pinn_solution_0.5_0.5"
52-
!wget "https://github.com/mathLab/PINA/blob/master/tutorials/tutorial7/data/pts_0.5_0.5" -O "data/pts_0.5_0.5"
51+
!wget "https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial7/data/pinn_solution_0.5_0.5" -O "data/pinn_solution_0.5_0.5"
52+
!wget "https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial7/data/pts_0.5_0.5" -O "data/pts_0.5_0.5"
5353
5454
5555
import matplotlib.pyplot as plt

tutorials/tutorial10/tutorial.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
" !pip install \"pina-mathlab\"\n",
3434
" # get the data\n",
3535
" !mkdir \"data\"\n",
36-
" !wget \"https://github.com/mathLab/PINA/blob/master/tutorials/tutorial10/dat/Data_KS.mat\" -O \"data/Data_KS.mat\"\n",
37-
" !wget \"https://github.com/mathLab/PINA/blob/master/tutorials/tutorial10/dat/Data_KS2.mat\" -O \"data/Data_KS2.mat\"\n",
36+
" !wget \"https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial10/data/Data_KS.mat\" -O \"data/Data_KS.mat\"\n",
37+
" !wget \"https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial10/data/Data_KS2.mat\" -O \"data/Data_KS2.mat\"\n",
3838
"\n",
3939
"import torch\n",
4040
"import matplotlib.pyplot as plt\n",
@@ -104,7 +104,7 @@
104104
],
105105
"source": [
106106
"# load data\n",
107-
"data=io.loadmat(\"dat/Data_KS.mat\")\n",
107+
"data=io.loadmat(\"data/Data_KS.mat\")\n",
108108
"\n",
109109
"# converting to label tensor\n",
110110
"initial_cond_train = LabelTensor(torch.tensor(data['initial_cond_train'], dtype=torch.float), ['t','x','u0'])\n",

tutorials/tutorial10/tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
get_ipython().system('pip install "pina-mathlab"')
2828
# get the data
2929
get_ipython().system('mkdir "data"')
30-
get_ipython().system('wget "https://github.com/mathLab/PINA/blob/master/tutorials/tutorial10/dat/Data_KS.mat" -O "data/Data_KS.mat"')
31-
get_ipython().system('wget "https://github.com/mathLab/PINA/blob/master/tutorials/tutorial10/dat/Data_KS2.mat" -O "data/Data_KS2.mat"')
30+
get_ipython().system('wget "https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial10/data/Data_KS.mat" -O "data/Data_KS.mat"')
31+
get_ipython().system('wget "https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial10/data/Data_KS2.mat" -O "data/Data_KS2.mat"')
3232

3333
import torch
3434
import matplotlib.pyplot as plt

tutorials/tutorial5/tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
" !pip install \"pina-mathlab\"\n",
3737
" !pip install scipy\n",
3838
" # get the data\n",
39-
" !wget https://github.com/mathLab/PINA/blob/master/tutorials/tutorial5/Data_Darcy.mat\n",
39+
" !wget https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial5/Data_Darcy.mat\n",
4040
"\n",
4141
" \n",
4242
"# !pip install scipy # install scipy\n",

tutorials/tutorial5/tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
get_ipython().system('pip install "pina-mathlab"')
2323
get_ipython().system('pip install scipy')
2424
# get the data
25-
get_ipython().system('wget https://github.com/mathLab/PINA/blob/master/tutorials/tutorial5/Data_Darcy.mat')
25+
get_ipython().system('wget https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial5/Data_Darcy.mat')
2626

2727

2828
# !pip install scipy # install scipy

tutorials/tutorial7/tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
" !pip install \"pina-mathlab\"\n",
6666
" # get the data\n",
6767
" !mkdir \"data\"\n",
68-
" !wget \"https://github.com/mathLab/PINA/blob/master/tutorials/tutorial7/data/pinn_solution_0.5_0.5\" -O \"data/pinn_solution_0.5_0.5\"\n",
69-
" !wget \"https://github.com/mathLab/PINA/blob/master/tutorials/tutorial7/data/pts_0.5_0.5\" -O \"data/pts_0.5_0.5\"\n",
68+
" !wget \"https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial7/data/pinn_solution_0.5_0.5\" -O \"data/pinn_solution_0.5_0.5\"\n",
69+
" !wget \"https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial7/data/pts_0.5_0.5\" -O \"data/pts_0.5_0.5\"\n",
7070
" \n",
7171
"import matplotlib.pyplot as plt\n",
7272
"plt.style.use('tableau-colorblind10')\n",

0 commit comments

Comments
 (0)