Skip to content

Commit

Permalink
fix analysis test
Browse files Browse the repository at this point in the history
  • Loading branch information
RobBuchananCompPhys committed Feb 10, 2025
1 parent ef5ab5f commit f620ed3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions MDANSE/Tests/UnitTests/Analysis/test_trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,19 @@ def test_UnfoldedTrajectory(parameters):
assert path.isfile(temp_name + ".log")
os.remove(temp_name + ".log")

def test_TrajectoryFilter(parameters):
def test_TrajectoryFilter():
parameters = {
'atom_selection': '{"all": true}',
'frames': [0, 10, 1, 5],
'instrument_resolution': ('ideal', {}),
'projection': None,
'running_mode': ('single-core',),
'trajectory_filter': '{ "filter": "Butterworth", "attributes": { "order": 1, "attenuation_type": "lowpass", "cutoff_freq": 25.0 } }',
'weights': 'atomic_weight'
}
parameters["trajectory"] = short_traj
temp_name = tempfile.mktemp()
parameters["output_files"] = (temp_name, 64, "gzip", "INFO")
parameters["output_files"] = (temp_name, 64, 128, "gzip", "INFO")
job = IJob.create("TrajectoryFilter")
job.run(parameters, status=True)
assert path.exists(temp_name + ".mdt")
Expand Down

0 comments on commit f620ed3

Please sign in to comment.