check on Colab option

This commit is contained in:
AleDinve
2024-10-31 15:26:00 +01:00
committed by Nicola Demo
parent a5e326c927
commit db521ef468
11 changed files with 18 additions and 14 deletions

View File

@@ -24,6 +24,10 @@ operations.
IN_COLAB = False
if IN_COLAB:
!pip install "pina-mathlab"
!mkdir "data"
!wget "https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial10/data/Data_KS.mat" -O "data/Data_KS.mat"
!wget "https://github.com/mathLab/PINA/raw/refs/heads/master/tutorials/tutorial10/data/Data_KS2.mat" -O "data/Data_KS2.mat"
import torch
import matplotlib.pyplot as plt