trigger workflow tutorials

This commit is contained in:
Dario Coscia
2025-03-15 21:03:00 +01:00
committed by Nicola Demo
parent f1da0e8924
commit 3712631878
14 changed files with 25 additions and 28 deletions

View File

@@ -80,7 +80,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "2373a925",
"metadata": {},
"outputs": [],
@@ -89,7 +89,7 @@
"try:\n",
" import google.colab\n",
"\n",
" IN_COLAB = True\n",
" IN_COLAB = True \n",
"except:\n",
" IN_COLAB = False\n",
"if IN_COLAB:\n",

View File

@@ -19,7 +19,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -31,7 +31,7 @@
"except:\n",
" IN_COLAB = False\n",
"if IN_COLAB:\n",
" !pip install \"pina-mathlab\"\n",
" !pip install \"pina-mathlab\" \n",
" # get the data\n",
" !mkdir \"data\"\n",
" !wget \"https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial10/data/Data_KS.mat\" -O \"data/Data_KS.mat\"\n",

View File

@@ -19,7 +19,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -36,9 +36,9 @@
"import warnings\n",
"\n",
"from pina import Condition, Trainer\n",
"from pina.solver import PINN\n",
"from pina.solver import PINN \n",
"from pina.model import FeedForward\n",
"from pina.problem import SpatialProblem\n",
"from pina.problem import SpatialProblem \n",
"from pina.operator import grad\n",
"from pina.domain import CartesianDomain\n",
"from pina.equation import Equation, FixedValue\n",

View File

@@ -19,7 +19,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -38,7 +38,7 @@
"import warnings\n",
"\n",
"from pina import Condition, Trainer\n",
"from pina.problem import SpatialProblem\n",
"from pina.problem import SpatialProblem \n",
"from pina.operator import laplacian\n",
"from pina.solver import PINN, SelfAdaptivePINN as SAPINN\n",
"from pina.loss import LpLoss\n",

View File

@@ -27,7 +27,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -39,7 +39,7 @@
"except:\n",
" IN_COLAB = False\n",
"if IN_COLAB:\n",
" !pip install \"pina-mathlab\"\n",
" !pip install \"pina-mathlab\" \n",
"\n",
"%matplotlib inline\n",
"\n",

View File

@@ -31,7 +31,7 @@
"if IN_COLAB:\n",
" !pip install \"pina-mathlab\"\n",
"\n",
"import torch\n",
"import torch \n",
"import matplotlib.pyplot as plt\n",
"import warnings\n",
"\n",

View File

@@ -16,7 +16,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "d93daba0",
"metadata": {},
"outputs": [],
@@ -28,7 +28,7 @@
" IN_COLAB = True\n",
"except:\n",
" IN_COLAB = False\n",
"if IN_COLAB:\n",
"if IN_COLAB: \n",
" !pip install \"pina-mathlab\"\n",
"\n",
"import torch\n",

View File

@@ -43,7 +43,7 @@
"if IN_COLAB:\n",
" !pip install \"pina-mathlab\"\n",
"\n",
"import torch\n",
"import torch \n",
"import matplotlib.pyplot as plt\n",
"import torchvision # for MNIST dataset\n",
"import warnings\n",

View File

@@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "5f2744dc",
"metadata": {
"ExecuteTime": {
@@ -46,7 +46,7 @@
"\n",
"import torch\n",
"import matplotlib.pyplot as plt\n",
"import warnings\n",
"import warnings \n",
"\n",
"# !pip install scipy # install scipy\n",
"from scipy import io\n",

View File

@@ -34,7 +34,7 @@
"if IN_COLAB:\n",
" !pip install \"pina-mathlab\"\n",
"\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib.pyplot as plt \n",
"\n",
"from pina.domain import (\n",
" EllipsoidDomain,\n",

View File

@@ -50,7 +50,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": null,
"id": "00d1027d-13f2-4619-9ff7-a740568f13ff",
"metadata": {},
"outputs": [
@@ -75,7 +75,7 @@
"source": [
"## routine needed to run the notebook on Google Colab\n",
"try:\n",
" import google.colab\n",
" import google.colab \n",
"\n",
" IN_COLAB = True\n",
"except:\n",

View File

@@ -31,7 +31,7 @@
},
{
"cell_type": "code",
"execution_count": 82,
"execution_count": null,
"id": "00d1027d-13f2-4619-9ff7-a740568f13ff",
"metadata": {},
"outputs": [],
@@ -42,7 +42,7 @@
"\n",
" IN_COLAB = True\n",
"except:\n",
" IN_COLAB = False\n",
" IN_COLAB = False \n",
"if IN_COLAB:\n",
" !pip install \"pina-mathlab\"\n",
"\n",

View File

@@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -35,11 +35,11 @@
" !pip install \"pina-mathlab\"\n",
"\n",
"import torch\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib.pyplot as plt \n",
"import warnings\n",
"\n",
"from pina import Condition, Trainer\n",
"from pina.problem import SpatialProblem\n",
"from pina.problem import SpatialProblem \n",
"from pina.operator import laplacian\n",
"from pina.model import FeedForward\n",
"from pina.model.block import PeriodicBoundaryEmbedding # The PBC module\n",