Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions contact_map/tests/test_dask_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ def test_dask_integration(self):
# this is an integration test to check that dask works
dask = pytest.importorskip('dask') # pylint: disable=W0612
distributed = pytest.importorskip('dask.distributed')

client = distributed.Client()
# Explicitly set only 4 workers on Travis instead of 31
# Fix copied from https://github.com/spencerahill/aospy/pull/220/files
cluster = distributed.LocalCluster(n_workers=4)
client = distributed.Client(cluster)
filename = find_testfile("trajectory.pdb")

dask_freq = DaskContactFrequency(client, filename, cutoff=0.075,
Expand Down