Data for Colab / colorblind setting
This commit is contained in:
5
tutorials/tutorial7/tutorial.ipynb
vendored
5
tutorials/tutorial7/tutorial.ipynb
vendored
@@ -63,8 +63,13 @@
|
||||
" 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/tutorial7/data/pinn_solution_0.5_0.5\" -O \"data/pinn_solution_0.5_0.5\"\n",
|
||||
" !wget \"https://github.com/mathLab/PINA/blob/master/tutorials/tutorial7/data/pts_0.5_0.5\" -O \"data/pts_0.5_0.5\"\n",
|
||||
" \n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"plt.style.use('tableau-colorblind10')\n",
|
||||
"import torch\n",
|
||||
"from pytorch_lightning.callbacks import Callback\n",
|
||||
"from pina.problem import SpatialProblem, InverseProblem\n",
|
||||
|
||||
5
tutorials/tutorial7/tutorial.py
vendored
5
tutorials/tutorial7/tutorial.py
vendored
@@ -36,8 +36,13 @@ 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/tutorial7/data/pinn_solution_0.5_0.5" -O "data/pinn_solution_0.5_0.5"')
|
||||
get_ipython().system('wget "https://github.com/mathLab/PINA/blob/master/tutorials/tutorial7/data/pts_0.5_0.5" -O "data/pts_0.5_0.5"')
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
plt.style.use('tableau-colorblind10')
|
||||
import torch
|
||||
from pytorch_lightning.callbacks import Callback
|
||||
from pina.problem import SpatialProblem, InverseProblem
|
||||
|
||||
Reference in New Issue
Block a user