Example #1
0
 def test_with_split(self):
     ssad = emp.ssad(self.pat1, self.cols1, 'x:2')
     assert_array_equal(ssad[0][1]['y'], [4,0])  # spp a
     assert_array_equal(ssad[1][1]['y'], [1,3])  # spp b
Example #2
0
 def test_no_splits(self):
     # Just total abundance by species
     ssad = emp.ssad(self.pat1, self.cols1, None)
     assert_array_equal(ssad[0][1]['y'], [4])
     assert_array_equal(ssad[1][1]['y'], [4])