Skip to content

Commit a9fb24c

Browse files
committed
Fix test errors
1 parent 3739064 commit a9fb24c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ensemble_md/analysis/analyze_traj.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ def plot_state_hist(trajs, state_ranges, fig_name, stack=True, figsize=None, pre
543543
dir_list = []
544544
for i in fig_name.split('/')[:-1]:
545545
dir_list.append(i)
546+
dir_list.append('/')
546547
dir_path = ''.join(dir_list)
547548
np.save(f'{dir_path}/hist_data.npy', hist_data)
548549
else:

ensemble_md/tests/test_analyze_traj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def test_plot_state_hist(mock_plt):
595595
}
596596

597597
# Clean up
598-
os.remove('hist_data.npy')
598+
os.remove('ensemble_md/tests/data/hist_data.npy')
599599

600600

601601
def test_calc_hist_rmse():

ensemble_md/tests/test_replica_exchange_EE.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_set_params_error(self, params_dict):
9090
params_dict['n_sim'] = 4 # so params_dict can be read without failing in the assertions below
9191

9292
# 2. Available options
93-
check_param_error(params_dict, 'proposal', "The specified proposal scheme is not available. Available options include 'single', 'neighboring', 'exhaustive', 'forced_swap', 'forced_random'.", 'cool', 'exhaustive') # noqa: E501
93+
check_param_error(params_dict, 'proposal', "The specified proposal scheme is not available. Available options include 'single', 'neighboring', 'exhaustive', 'random_range'.", 'cool', 'exhaustive') # noqa: E501
9494
check_param_error(params_dict, 'df_method', "The specified free energy estimator is not available. Available options include 'TI', 'BAR', and 'MBAR'.") # noqa: E501
9595
check_param_error(params_dict, 'err_method', "The specified method for error estimation is not available. Available options include 'propagate', and 'bootstrap'.") # noqa: E501
9696

0 commit comments

Comments
 (0)