Skip to content

Commit 7fa1c19

Browse files
committed
Created a modules folder for the graph_tools so they can be used by all samples added the references to the function
1 parent bf2ce98 commit 7fa1c19

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**/.ipynb_checkpoints/
22
forward-solvers/__pycache__/
33
libraries/
4+
modules/__pycache__/

forward-solvers/fluence-of-rho-and-z-two-layer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
import clr
1212
# Import the Operating System so we can access the files for the VTS library
1313
import os
14+
import sys
15+
module_path = '../modules'
16+
sys.path.append(module_path)
1417
file = '../libraries/Vts.dll'
1518
clr.AddReference(os.path.abspath(file))
1619
import numpy as np

forward-solvers/phd-of-rho-and-z-compute-fluence.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
import clr
1010
# Import the Operating System so we can access the files for the VTS library
1111
import os
12+
import sys
13+
module_path = '../modules'
14+
sys.path.append(module_path)
1215
file = '../libraries/Vts.dll'
1316
clr.AddReference(os.path.abspath(file))
1417
import numpy as np

forward-solvers/phd-of-rho-and-z-two-layer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
import clr
1010
# Import the Operating System so we can access the files for the VTS library
1111
import os
12+
import sys
13+
module_path = '../modules'
14+
sys.path.append(module_path)
1215
file = '../libraries/Vts.dll'
1316
clr.AddReference(os.path.abspath(file))
1417
import numpy as np

0 commit comments

Comments
 (0)