Skip to content

Commit 4897c8d

Browse files
committed
Minor correction on simulation campaign handling
1 parent 0b6d1fe commit 4897c8d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fabfile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def run(name):
118118

119119
# ****************************** TASKS ON SIMULATION CAMPAIGN ******************************
120120
@task
121-
@expand_file(TEMPLATES_FOLDER, 'json')
121+
@expand_file(EXPERIMENT_FOLDER, 'json')
122122
def make_all(exp_file="experiments"):
123123
global reuse_bin_path
124124
for name, params in get_experiments(exp_file).items():
@@ -134,7 +134,7 @@ def prepare(exp_file='my_simulation'):
134134

135135

136136
@task
137-
@expand_file(TEMPLATES_FOLDER, 'json')
137+
@expand_file(EXPERIMENT_FOLDER, 'json')
138138
def run_all(exp_file="experiments"):
139139
for name in get_experiments(exp_file).keys():
140140
run(name)

lib/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def get_experiments(exp_file):
124124
exp_file += ".json"
125125
if not os.path.exists(exp_file):
126126
logging.critical("Simulation campaign JSON file does not exist !")
127+
logging.warning("Make sure you've generated a JSON simulation campaign file by using 'prepare' fabric command.")
127128
exit(2)
128129
with open(exp_file) as f:
129130
experiments = json.load(f)

0 commit comments

Comments
 (0)