Skip to content

Commit

Permalink
HACK: diagnosis through amputation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisKeefe committed Jun 12, 2020
1 parent 90c8859 commit 3d51eb6
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions q2_diversity_lib/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,29 +175,29 @@ def test_auto_passed_to_cpu_request(self, mock_process):
self.assertEqual(self.function_w_threads_param('auto'), 3)
self.assertEqual(self.function_w_threads_param(threads='auto'), 3)

def test_cpu_request_through_framework(self):
self.jaccard_thru_framework(self.larger_table_as_artifact, n_jobs=1)
self.jaccard_thru_framework(self.larger_table_as_artifact,
n_jobs='auto')
self.unweighted_unifrac_thru_framework(self.larger_table_as_artifact,
self.larger_tree_as_artifact,
threads=1)
self.unweighted_unifrac_thru_framework(self.larger_table_as_artifact,
self.larger_tree_as_artifact,
threads='auto')
# If we get here, then it ran without error
self.assertTrue(True)

def test_more_threads_than_max_stripes(self):
# The two_feature_table used here has only three samples, meaning
# that it has a max of (3+1)/2 = 2 stripes. Unifrac may report
# requests of more-threads-than-stripes to stderror, but should handle
# that situation gracefully.
self.unweighted_unifrac_thru_framework(
self.two_feature_table_as_artifact,
self.valid_tree_as_artifact, threads=1)
self.unweighted_unifrac_thru_framework(
self.two_feature_table_as_artifact,
self.valid_tree_as_artifact, threads='auto')
# If we get here, then it ran without error
self.assertTrue(True)
# def test_cpu_request_through_framework(self):
# self.jaccard_thru_framework(self.larger_table_as_artifact, n_jobs=1)
# self.jaccard_thru_framework(self.larger_table_as_artifact,
# n_jobs='auto')
# self.unweighted_unifrac_thru_framework(self.larger_table_as_artifact,
# self.larger_tree_as_artifact,
# threads=1)
# self.unweighted_unifrac_thru_framework(self.larger_table_as_artifact,
# self.larger_tree_as_artifact,
# threads='auto')
# # If we get here, then it ran without error
# self.assertTrue(True)
#
# def test_more_threads_than_max_stripes(self):
# # The two_feature_table used here has only three samples, meaning
# # that it has a max of (3+1)/2 = 2 stripes. Unifrac may report
# # requests of more-threads-than-stripes to stderror, but should handl
# # that situation gracefully.
# self.unweighted_unifrac_thru_framework(
# self.two_feature_table_as_artifact,
# self.valid_tree_as_artifact, threads=1)
# self.unweighted_unifrac_thru_framework(
# self.two_feature_table_as_artifact,
# self.valid_tree_as_artifact, threads='auto')
# # If we get here, then it ran without error
# self.assertTrue(True)

0 comments on commit 3d51eb6

Please sign in to comment.