Skip to content

Commit

Permalink
test remove max mem usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwoods2 committed May 4, 2024
1 parent 97f72d6 commit f132501
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions zarrtraj/tests/test_zarrtraj_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,16 +314,6 @@ def test_max_memory_too_low(self, ref, reader, universe, outgroup):
for ts in universe.trajectory:
w.write(universe)

def test_max_memory_usage(self, ref, universe, outgroup):
with ref.writer(outgroup, universe.atoms.n_atoms,
n_frames=universe.trajectory.n_frames,
chunks=(1, universe.trajectory.n_atoms, 3),
max_memory=224,
format='ZARRTRAJ') as w:
for ts in universe.trajectory[:5]:
w.write(universe)
# Each frame of synthetic trajectory should be 224 bytes
assert get_memory_usage(w) <= 224


# Helper Functions
Expand Down

0 comments on commit f132501

Please sign in to comment.