Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(70)  |  Call(68)  |  Derive(0)  |  Import(2)

src/b/i/biopython-1.63/Tests/test_Crystal.py   biopython(Download)
 
# modules to be tested
from Bio.Crystal import Hetero, Chain, Crystal, CrystalError
 
 
 
        chain = Chain(self.a[:])
        chain.append(Hetero('A'))
        elements = self.a.strip().split()
        num_elements = len(elements)
 
        chain = Chain(self.b[:])
        chain.append(Hetero('C'))
        elements = self.b.strip().split()
        num_elements = len(elements)
        chain = Chain(self.b[:])
        i = 9
        chain.insert(i, Hetero('a'))
        elements = self.a.strip().split()
        num_elements = len(elements)
        elements = self.a.strip().split()
        num_elements = len(elements)
        num_a = chain.data.count(Hetero('a'))
        chain.remove('a')
        num_a_remaining = chain.data.count(Hetero('a'))

src/b/i/biopython-HEAD/Tests/test_Crystal.py   biopython(Download)
 
# modules to be tested
from Bio.Crystal import Hetero, Chain, Crystal, CrystalError
 
 
 
        chain = Chain(self.a[:])
        chain.append(Hetero('A'))
        elements = self.a.strip().split()
        num_elements = len(elements)
 
        chain = Chain(self.b[:])
        chain.append(Hetero('C'))
        elements = self.b.strip().split()
        num_elements = len(elements)
        chain = Chain(self.b[:])
        i = 9
        chain.insert(i, Hetero('a'))
        elements = self.a.strip().split()
        num_elements = len(elements)
        elements = self.a.strip().split()
        num_elements = len(elements)
        num_a = chain.data.count(Hetero('a'))
        chain.remove('a')
        num_a_remaining = chain.data.count(Hetero('a'))