Skip to content

Commit fcbf493

Browse files
committed
fix errors in the new test
1 parent 1ebeee5 commit fcbf493

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

tests/integration/test_lenreg_IO_load.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def test_lenreg_IO_load():
4747
"sim_data_file_ext": '.txt',
4848
"sigma_tol": 0.01,
4949
},
50-
"calibration": {
51-
"inference": {"ess_target": 0.3},
50+
"inference": {
51+
"Bayes_filter": {"ess_target": 0.3},
5252
"sampling": {
5353
"max_num_components": 1,
5454
"covariance_type": "full",
@@ -93,8 +93,8 @@ def test_lenreg_IO_load():
9393
"sim_data_file_ext": ".txt",
9494
"param_names": ['a', 'b'],
9595
},
96-
"calibration": {
97-
"inference": {"ess_target": 0.3},
96+
"inference": {
97+
"Bayes_filter": {"ess_target": 0.3},
9898
"sampling": {
9999
"max_num_components": 1,
100100
"covariance_type": "full",
@@ -106,18 +106,10 @@ def test_lenreg_IO_load():
106106
calibration_continued.load_and_run_one_iteration()
107107
calibration_continued.run()
108108
#: Check if the figures are saved
109-
assert os.path.isfile(
110-
PATH + '/sim_data/iter0/linear_param_means.png'), "Figure is not saved"
111-
assert os.path.isfile(
112-
PATH + '/sim_data/iter0/linear_param_covs.png'), "Figure is not saved"
113-
assert os.path.isfile(
114-
PATH + '/sim_data/iter0/linear_posterior_a.png'), "Figure is not saved"
115-
assert os.path.isfile(
116-
PATH + '/sim_data/iter0/linear_posterior_b.png'), "Figure is not saved"
117-
assert os.path.isfile(
118-
PATH + '/sim_data/iter0/linear_param_space.png'), "Figure is not saved"
119109
assert os.path.isfile(
120110
PATH + '/sim_data/iter0/linear_obs_and_sim.png'), "Figure is not saved"
111+
assert os.path.isfile(
112+
PATH + '/sim_data/iter0/linear_scatterplot.png'), "Figure is not saved"
121113

122114
# Remove the generated files in the folders that have been created
123115
os.system(f'rm -rf {PATH}/sim_data*')

0 commit comments

Comments
 (0)