Skip to content

Commit 60cdcc6

Browse files
committed
Fix ML_models specification for tests
1 parent 473611f commit 60cdcc6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

examples/LFP_developing_brain/LFP_developing_brain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def load_model_features(method, zenodo_dir_sim):
5656

5757

5858
@timer("Loading the inverse model.")
59-
def load_inference_data(method, X, theta, zenodo_dir_sim):
59+
def load_inference_data(method, X, theta, zenodo_dir_sim, ML_model):
6060
# Load the Inference objects and add the simulation data
6161

6262
# Create inference object
@@ -232,7 +232,7 @@ def save_data(emp_data, method):
232232
X, theta = load_model_features(method, zenodo_dir_sim)
233233

234234
# Load the Inference objects and add the simulation data
235-
inference = load_inference_data(method, X, theta, zenodo_dir_sim)
235+
inference = load_inference_data(method, X, theta, zenodo_dir_sim, ML_model)
236236

237237
# Load empirical data
238238
emp_data = load_empirical_data(zenodo_dir_emp)

tests/test_LFP/test_LFP.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
# Paths to zenodo empirical files
4242
zenodo_dir_emp= os.path.join(test_dir, "..", "data", "zenodo_test_files_LFP", "zenodo_emp_files") # Dir of GitHub testing downloaded files (set in tests.yml)
4343

44+
# ML model used to compute the predictions (MLPRegressor, Ridge or NPE)
45+
ML_model = 'MLPRegressor'
46+
4447
def LFP_mean(method):
4548
"""
4649
Compute only certain data for testing and calculate the average
@@ -50,7 +53,7 @@ def LFP_mean(method):
5053
X, theta = lfp.load_model_features(method, zenodo_dir_sim)
5154

5255
# Load the Inference objects and add the simulation data
53-
inference = lfp.load_inference_data(method, X, theta, zenodo_dir_sim)
56+
inference = lfp.load_inference_data(method, X, theta, zenodo_dir_sim, ML_model)
5457

5558
# Load empirical data
5659
emp_data = lfp.load_empirical_data(zenodo_dir_emp)

0 commit comments

Comments
 (0)