Skip to content

Commit f1d4ce7

Browse files
committed
Seems to pass examples
1 parent c5e1c2d commit f1d4ce7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/covasim_/vaccinating_elderly/example_vaccine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def run_sim_with_pars(pars_dict: dict, desired_outputs: [str], n_runs: int = 1,
212212
# Append outputs to results
213213
for output in desired_outputs:
214214
if output not in results:
215-
raise IndexError(f"{output} is not in the Covasim outputs.")
215+
raise IndexError(f"{output} is not in the Covasim outputs. Are you using v3.0.7?")
216216
results_dict[output].append(
217217
results[output][-1]
218218
) # Append the final recorded value for each variable

examples/poisson/example_run_causal_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def test_run_causal_tests():
157157
dag_path = f"{ROOT}/dag.dot"
158158
data_path = f"{ROOT}/data.csv"
159159

160-
json_utility = JsonUtility(log_path) # Create an instance of the extended JsonUtility class
160+
json_utility = JsonUtility(log_path, output_overwrite=True) # Create an instance of the extended JsonUtility class
161161
json_utility.set_paths(
162162
json_path, dag_path, [data_path]
163163
) # Set the path to the data.csv, dag.dot and causal_tests.json file

0 commit comments

Comments
 (0)