Skip to content

Commit 42cd90e

Browse files
maxcapodi78maxcapodi78
authored andcommitted
Fixed Example Failing
1 parent f966967 commit 42cd90e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/02-HFSS/Machine_learning_applied_to_Patch.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,8 @@ def index_of_resonance(imaginary_list, real_list):
285285
# First we import the 3300 cases json file, not the one we construct before because it is too small.
286286
# The one we generated is imported to test our model after the training.
287287

288-
path_file = os.path.dirname(__file__)
289-
path_folder = os.path.split(os.path.split(path_file)[0])[0]
290-
training_file = os.path.join(path_folder, "pyaedt", "misc", "ml_data_file_train_100GMHz_1GHz.json")
288+
path_folder = hfss.pyaedt_dir
289+
training_file = os.path.join(path_folder, "misc", "ml_data_file_train_100GMHz_1GHz.json")
291290
with open(training_file) as readfile:
292291
my_dictio_list_train = json.load(readfile)
293292

0 commit comments

Comments
 (0)