Did I find the right examples for you? yes no

All Samples(86)  |  Call(82)  |  Derive(0)  |  Import(4)

src/c/o/cogent-1.5.3/cogent/parse/aaindex.py   cogent(Download)
from cogent.parse.record_finder import DelimitedRecordFinder
from string import rstrip
from cogent.maths.matrix.distance import DistanceMatrix
 
__author__ = "Greg Caporaso"
        # return a new DistanceMatrix object
        if data:
            return DistanceMatrix(data=data, info=self)
 
        return None

src/p/y/pycogent-HEAD/cogent/parse/aaindex.py   pycogent(Download)
from cogent.parse.record_finder import DelimitedRecordFinder
from string import rstrip
from cogent.maths.matrix.distance import DistanceMatrix
 
__author__ = "Greg Caporaso"
        # return a new DistanceMatrix object
        if data:
            return DistanceMatrix(data=data, info=self)
 
        return None

src/c/o/cogent-1.5.3/tests/test_maths/test_matrix/test_distance.py   cogent(Download)
 
from cogent.util.unit_test import TestCase, main
from cogent.maths.matrix.distance import DistanceMatrix
from cogent.util.dict2d import largest, Dict2DError, Dict2DSparseError
from cogent.parse.aaindex import AAIndex1Record
    def test_all_init_parameters(self):
        """ All parameters to init are handled correctly """
        # will fail if any paramters are not recognized
        d = DistanceMatrix()
        d = DistanceMatrix(data={})
        d = DistanceMatrix(RowOrder=[])
        d = DistanceMatrix(ColOrder=[])

src/p/y/pycogent-HEAD/tests/test_maths/test_matrix/test_distance.py   pycogent(Download)
 
from cogent.util.unit_test import TestCase, main
from cogent.maths.matrix.distance import DistanceMatrix
from cogent.util.dict2d import largest, Dict2DError, Dict2DSparseError
from cogent.parse.aaindex import AAIndex1Record
    def test_all_init_parameters(self):
        """ All parameters to init are handled correctly """
        # will fail if any paramters are not recognized
        d = DistanceMatrix()
        d = DistanceMatrix(data={})
        d = DistanceMatrix(RowOrder=[])
        d = DistanceMatrix(ColOrder=[])