Did I find the right examples for you? yes no

# cogent.core.entity.copy

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

```from numpy import array
from itertools import izip
from cogent.core.entity import HIERARCHY, copy, StructureHolder, ModelHolder
from cogent.maths.geometry import coords_to_symmetry, coords_to_crystal
from cogent.struct.selection import einput
```
```    for i in xrange(0, len(mxs)):
# copy model
new_model = copy(model) # with additional models which
new_atoms = einput(new_model, 'A')
# patch with coordinates
```
```    vectors = [(x, y, z) for x in rng for y in rng for z in rng]
for i, (u, v, w) in enumerate(vectors):
new_structure = copy(structure)
new_atoms = einput(new_structure, 'A')
new_coords = all_coords[i, 0]
```

```from numpy import array
from itertools import izip
from cogent.core.entity import HIERARCHY, copy, StructureHolder, ModelHolder
from cogent.maths.geometry import coords_to_symmetry, coords_to_crystal
from cogent.struct.selection import einput
```
```    for i in xrange(0, len(mxs)):
# copy model
new_model = copy(model) # with additional models which
new_atoms = einput(new_model, 'A')
# patch with coordinates
```
```    vectors = [(x, y, z) for x in rng for y in rng for z in rng]
for i, (u, v, w) in enumerate(vectors):
new_structure = copy(structure)
new_atoms = einput(new_structure, 'A')
new_coords = all_coords[i, 0]
```