Data for Colab / colorblind setting
This commit is contained in:
5
tutorials/tutorial10/tutorial.ipynb
vendored
5
tutorials/tutorial10/tutorial.ipynb
vendored
@@ -31,9 +31,14 @@
|
||||
" IN_COLAB = False\n",
|
||||
"if IN_COLAB:\n",
|
||||
" !pip install \"pina-mathlab\"\n",
|
||||
" # get the data\n",
|
||||
" !mkdir \"data\"\n",
|
||||
" !wget \"https://github.com/mathLab/PINA/blob/master/tutorials/tutorial10/dat/Data_KS.mat\" -O \"data/Data_KS.mat\"\n",
|
||||
" !wget \"https://github.com/mathLab/PINA/blob/master/tutorials/tutorial10/dat/Data_KS2.mat\" -O \"data/Data_KS2.mat\"\n",
|
||||
"\n",
|
||||
"import torch\n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"plt.style.use('tableau-colorblind10')\n",
|
||||
"from scipy import io\n",
|
||||
"from pina import Condition, LabelTensor\n",
|
||||
"from pina.problem import AbstractProblem\n",
|
||||
|
||||
5
tutorials/tutorial10/tutorial.py
vendored
5
tutorials/tutorial10/tutorial.py
vendored
@@ -25,9 +25,14 @@ except:
|
||||
IN_COLAB = False
|
||||
if IN_COLAB:
|
||||
get_ipython().system('pip install "pina-mathlab"')
|
||||
# get the data
|
||||
get_ipython().system('mkdir "data"')
|
||||
get_ipython().system('wget "https://github.com/mathLab/PINA/blob/master/tutorials/tutorial10/dat/Data_KS.mat" -O "data/Data_KS.mat"')
|
||||
get_ipython().system('wget "https://github.com/mathLab/PINA/blob/master/tutorials/tutorial10/dat/Data_KS2.mat" -O "data/Data_KS2.mat"')
|
||||
|
||||
import torch
|
||||
import matplotlib.pyplot as plt
|
||||
plt.style.use('tableau-colorblind10')
|
||||
from scipy import io
|
||||
from pina import Condition, LabelTensor
|
||||
from pina.problem import AbstractProblem
|
||||
|
||||
Reference in New Issue
Block a user