Ticket #2926: test_add_coordset.py

File test_add_coordset.py, 299 bytes (added by goddard@…, 6 years ago)

Added by email2trac

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