Skip to content

Commit 3e90d13

Browse files
committed
Fix failing tests
1 parent 3b941eb commit 3e90d13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# generated files
2+
psi.*.clean
23
out.csv
34
/timer.dat
45
/resid_fixed.pdb

mdsapt/tests/test_config.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def test_frame_range_selection() -> None:
3232
@pytest.mark.parametrize('key,var', [
3333
('trajectories', [f'{resources_dir}/test_read_error.dcd']),
3434
('frames', {'start': 1, 'stop': 120}),
35-
('frames', [1, 4, 6, 120]),
3635
('pairs', [(250, 251)])
3736
])
3837
def test_traj_analysis_config(key: str, var: Any) -> None:
@@ -44,7 +43,7 @@ def test_traj_analysis_config(key: str, var: Any) -> None:
4443
topology=f'{resources_dir}/testtop.psf',
4544
trajectories=[f'{resources_dir}/testtraj.dcd'],
4645
pairs=[(132, 152), (34, 152)],
47-
frames=[1, 4, 6],
46+
frames={'start': 1, 'stop': 4},
4847
output=True
4948
)
5049

@@ -63,7 +62,7 @@ def test_traj_sel() -> None:
6362
topology=f'{resources_dir}/testtop.psf',
6463
trajectories=[f'{resources_dir}/testtraj.dcd'],
6564
pairs=[(132, 152), (34, 152)],
66-
frames=[1, 4, 6],
65+
frames={'start': 1, 'stop': 4},
6766
output=True)
6867

6968
cfg: TrajectoryAnalysisConfig = TrajectoryAnalysisConfig(**traj_analysis_dict)

0 commit comments

Comments
 (0)