Miller arrays from lists of indices
Dear cctbx devs, Does anyone know how to make a miller set from a list of (h, k, l) indices? e.g. [(1,2,3), (34, 1, 45), .... ] Cheers, Oliver -- Dr. Oliver B. Zeldin Brunger Group Stanford University
Hi Oliver, for example: from cctbx.array_family import flex x = [(1,2,3),(4,5,6)] mi = flex.miller_index(x) xs = crystal.symmetry((3,4,5), "P 2 2 2") ms = miller.set(xs, mi) Pavel On 10/6/14 5:24 PM, Oliver Zeldin wrote:
Dear cctbx devs,
Does anyone know how to make a miller set from a list of (h, k, l) indices?
e.g. [(1,2,3), (34, 1, 45), .... ]
Cheers,
Oliver
-- Dr. Oliver B. Zeldin Brunger Group Stanford University
_______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb
P.S.: of course you will need to import: from cctbx import miller from cctbx import crystal Pavel On 10/6/14 5:50 PM, Pavel Afonine wrote:
Hi Oliver,
for example:
from cctbx.array_family import flex x = [(1,2,3),(4,5,6)] mi = flex.miller_index(x) xs = crystal.symmetry((3,4,5), "P 2 2 2") ms = miller.set(xs, mi)
Pavel
On 10/6/14 5:24 PM, Oliver Zeldin wrote:
Dear cctbx devs,
Does anyone know how to make a miller set from a list of (h, k, l) indices?
e.g. [(1,2,3), (34, 1, 45), .... ]
Cheers,
Oliver
-- Dr. Oliver B. Zeldin Brunger Group Stanford University
_______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb
participants (2)
-
Oliver Zeldin
-
Pavel Afonine