Data for Colab / colorblind setting
This commit is contained in:
6
tutorials/tutorial5/tutorial.ipynb
vendored
6
tutorials/tutorial5/tutorial.ipynb
vendored
@@ -35,6 +35,9 @@
|
||||
"if IN_COLAB:\n",
|
||||
" !pip install \"pina-mathlab\"\n",
|
||||
" !pip install scipy\n",
|
||||
" # get the data\n",
|
||||
" !wget https://github.com/mathLab/PINA/blob/master/tutorials/tutorial5/Data_Darcy.mat\n",
|
||||
"\n",
|
||||
" \n",
|
||||
"# !pip install scipy # install scipy\n",
|
||||
"from scipy import io\n",
|
||||
@@ -44,7 +47,8 @@
|
||||
"from pina.solvers import SupervisedSolver\n",
|
||||
"from pina.trainer import Trainer\n",
|
||||
"from pina.problem import AbstractProblem\n",
|
||||
"import matplotlib.pyplot as plt"
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"plt.style.use('tableau-colorblind10')"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
4
tutorials/tutorial5/tutorial.py
vendored
4
tutorials/tutorial5/tutorial.py
vendored
@@ -21,6 +21,9 @@ except:
|
||||
if IN_COLAB:
|
||||
get_ipython().system('pip install "pina-mathlab"')
|
||||
get_ipython().system('pip install scipy')
|
||||
# get the data
|
||||
get_ipython().system('wget https://github.com/mathLab/PINA/blob/master/tutorials/tutorial5/Data_Darcy.mat')
|
||||
|
||||
|
||||
# !pip install scipy # install scipy
|
||||
from scipy import io
|
||||
@@ -31,6 +34,7 @@ from pina.solvers import SupervisedSolver
|
||||
from pina.trainer import Trainer
|
||||
from pina.problem import AbstractProblem
|
||||
import matplotlib.pyplot as plt
|
||||
plt.style.use('tableau-colorblind10')
|
||||
|
||||
|
||||
# ## Data Generation
|
||||
|
||||
Reference in New Issue
Block a user