fdd6fcc21fd42a55f9988681850348e9f8201446,skbio/sequence/tests/test_sequence.py,SequenceInterfaceTests,test___getitem___with_mask,#SequenceInterfaceTests#,166

Before Change


        quality = np.fromstring(self.sample_sequence, dtype=np.uint8)
        seq = self.cls(self.sample_sequence, id="id1",
                        description="description", quality=quality)
        no_quality = self.cls(self.sample_sequence, id="id1",
                              description="description")

        mask = np.bincount(list(range(0, len(self.sample_sequence),
                                      3))).astype(np.bool)

After Change


            no_qual[tuple(indexable)].equals(exp_no_qual, descriptive=True)
            no_qual[list(indexable)].equals(exp_no_qual, descriptive=True)

    def test___getitem___with_mask(self):
        Seq, string, qual, max_range = self._getitem_compenents()

        // These are the objects to test.
        seq = Seq(string, id="id", description="dsc", quality=qual)
        no_qual = Seq(string, id="idq", description="no_qual")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: biocore/scikit-bio
Commit Name: fdd6fcc21fd42a55f9988681850348e9f8201446
Time: 2015-03-22
Author: ebolyen@gmail.com
File Name: skbio/sequence/tests/test_sequence.py
Class Name: SequenceInterfaceTests
Method Name: test___getitem___with_mask


Project Name: biocore/scikit-bio
Commit Name: fdd6fcc21fd42a55f9988681850348e9f8201446
Time: 2015-03-22
Author: ebolyen@gmail.com
File Name: skbio/sequence/tests/test_sequence.py
Class Name: SequenceInterfaceTests
Method Name: test___getitem___gives_new_sequence


Project Name: biocore/scikit-bio
Commit Name: fdd6fcc21fd42a55f9988681850348e9f8201446
Time: 2015-03-22
Author: ebolyen@gmail.com
File Name: skbio/sequence/tests/test_sequence.py
Class Name: SequenceInterfaceTests
Method Name: test___getitem___with_mask


Project Name: biocore/scikit-bio
Commit Name: fdd6fcc21fd42a55f9988681850348e9f8201446
Time: 2015-03-22
Author: ebolyen@gmail.com
File Name: skbio/sequence/tests/test_sequence.py
Class Name: SequenceInterfaceTests
Method Name: test___getitem___with_invalid