def load_coords(coords, object, state, quiet=1): ''' DESCRIPTION API only. Load object coordinates. TODO: How to handle the object matrix? SEE ALSO pymol.experimenting.load_coords (considered broken!) ''' if not (isinstance(coords, list) and isinstance(coords[0], list)): coords = map(list, coords) r = cmd._cmd.load_coords(cmd._COb, object, coords, int(state)-1, cmd.loadable.model) if cmd._raising(r): raise CmdException return r
def load_coords(coords, object, state, quiet=1): ''' DESCRIPTION API only. Load object coordinates. TODO: How to handle the object matrix? SEE ALSO cmd.load_coordset (new in 1.7.3.0) pymol.experimenting.load_coords (considered broken!) ''' if hasattr(cmd, 'load_coordset'): return cmd.load_coordset(coords, object, int(state)) if not (isinstance(coords, list) and isinstance(coords[0], list)): coords = list(map(list, coords)) r = cmd._cmd.load_coords(cmd._COb, object, coords, int(state) - 1, cmd.loadable.model) if cmd._raising(r): raise CmdException return r