Skip to content

Commit 5bf496a

Browse files
committed
updated tutorial 1 .ipynb and .py to in line with the modernization
1 parent 0cb4690 commit 5bf496a

File tree

3 files changed

+36
-9
lines changed

3 files changed

+36
-9
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ pygem.egg-info/
1111

1212
# virtual environments
1313
venv_pygem/
14-
venv_pygem
14+
venv_pygem
15+
#virtual environments
16+
venv_pygem/

tutorials/tutorial1/tutorial-1-ffd.ipynb

Lines changed: 29 additions & 4 deletions
Large diffs are not rendered by default.

tutorials/tutorial1/tutorial-1-ffd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# Tutorial 1: Free Form Deformation on Spherical Mesh
22
import sys
3-
3+
import platform
44
print(f"Python Version: {sys.version}")
55
print(f"Platform: {sys.platform}")
6+
print(f"System: {platform.system()} {platform.release()}")
67

78
try:
89
import pygem
9-
1010
print(f"PyGeM version: {pygem.__version__}")
1111
except ImportError:
1212
print(f"PyGeM not found. Installing...")
1313
import subprocess
1414

1515
# Installing from local source. It can be replaced with github installation once pushed and merged.
16-
subprocess.check_call([sys.executable, "-m", "pip", "install", "-e", ".[dev]"])
16+
subprocess.check_call([sys.executable, "-m", "pip", "install", "-e", ".[tut]"])
1717
import pygem
1818

1919
print(f"PyGeM version: {pygem.__version__}")
2020

2121
import numpy as np
2222

23-
np.random.seed(1)
23+
np.random.seed(42)
2424

2525

2626
import numpy as np

0 commit comments

Comments
 (0)