Ticket #2926: test_add_coordset.py
| File test_add_coordset.py, 299 bytes (added by , 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | # Test whether add_coordset() assigns the correct atom coordinates. |
| 2 | |
| 3 | from chimerax.core.commands import run |
| 4 | |
| 5 | m = run(session, 'open 1a0m')[0] |
| 6 | xyz = m.atoms.coords.copy() |
| 7 | print ('coords', xyz[:5]) |
| 8 | |
| 9 | xyz += 1 |
| 10 | m.add_coordset(2, xyz) |
| 11 | m.active_coordset_id = 2 |
| 12 | |
| 13 | print ('added coords', m.atoms.coords[:5]) |
| 14 |