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

# cogent.maths.matrix.distance.DistanceMatrix.copy

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

```    def test_copy(self):
""" Copy functions as expected"""
dm = DistanceMatrix(data=self.m2, RowOrder=self.m2.keys(), info=self.aar)
c = dm.copy()
self.assertEqual(c['A']['A'],dm['A']['A'])
```
```    def test_attribute_forwarder_integrity_after_copy(self):
""" Integrity of attribute forwarding following a copy()"""
dm = DistanceMatrix(data=self.m2, RowOrder=self.m2.keys(), info=self.aar)
c = dm.copy()

```
```    def test_transpose(self):
""" transpose functions as expected """
for m in self.matrices:
d = DistanceMatrix(data=m)
t = d.copy()
```
```    def test_reflect(self):
""" reflect functions as expected """
for m in self.matrices:
d = DistanceMatrix(data=m)
n = d.copy()
```

```    def test_copy(self):
""" Copy functions as expected"""
dm = DistanceMatrix(data=self.m2, RowOrder=self.m2.keys(), info=self.aar)
c = dm.copy()
self.assertEqual(c['A']['A'],dm['A']['A'])
```
```    def test_attribute_forwarder_integrity_after_copy(self):
""" Integrity of attribute forwarding following a copy()"""
dm = DistanceMatrix(data=self.m2, RowOrder=self.m2.keys(), info=self.aar)
c = dm.copy()

```
```    def test_transpose(self):
""" transpose functions as expected """
for m in self.matrices:
d = DistanceMatrix(data=m)
t = d.copy()
```
```    def test_reflect(self):
""" reflect functions as expected """
for m in self.matrices:
d = DistanceMatrix(data=m)
n = d.copy()
```