3c5e7c346c8bf04dbb78235d9267528949e4141e,bipy/maths/stats/distance/tests/test_permanova.py,PERMANOVATests,test_call_ties,#PERMANOVATests#,56

Before Change


        exp_p_val = 0.671

        np.random.seed(0)
        obs = self.permanova_ties()
        self.assertFloatEqual(obs.statistic, exp_f_stat)
        self.assertFloatEqual(obs.p_value, exp_p_val)

        // Ensure we get the same results if we rerun the method on the same

After Change


    def test_call_ties(self):
        // Ensure we get the same results if we rerun the method on the same
        // object.
        for trial in range(2):
            np.random.seed(0)
            obs = self.permanova_ties()
            self.assertEqual(obs.sample_size, 4)
            self.assertTrue(np.array_equal(obs.groups,
                                           np.asarray(["Control", "Fast"])))
            self.assertFloatEqual(obs.statistic, 2.0)
            self.assertFloatEqual(obs.p_value, 0.671)
            self.assertEqual(obs.permutations, 999)

    def test_call_no_ties(self):
        np.random.seed(0)
        obs = self.permanova_no_ties()
        self.assertEqual(obs.sample_size, 4)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: biocore/scikit-bio
Commit Name: 3c5e7c346c8bf04dbb78235d9267528949e4141e
Time: 2014-03-03
Author: jai.rideout@gmail.com
File Name: bipy/maths/stats/distance/tests/test_permanova.py
Class Name: PERMANOVATests
Method Name: test_call_ties


Project Name: biocore/scikit-bio
Commit Name: 3a1eb421e538d56db4e30b65c38d6221e066aa78
Time: 2014-05-11
Author: mcdonadt@colorado.edu
File Name: skbio/maths/stats/distance/tests/test_permanova.py
Class Name: PERMANOVATests
Method Name: test_call_ties


Project Name: biocore/scikit-bio
Commit Name: 310abb13340113253d273c37115701af6038c049
Time: 2014-05-06
Author: jai.rideout@gmail.com
File Name: skbio/maths/stats/distance/tests/test_permanova.py
Class Name: PERMANOVATests
Method Name: test_call_ties