[cctbxbb] Miller arrays from lists of indices

Pavel Afonine pafonine at lbl.gov
Mon Oct 6 17:51:30 PDT 2014


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
>> cctbxbb at phenix-online.org
>> http://phenix-online.org/mailman/listinfo/cctbxbb
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20141006/1fee1371/attachment.htm>


More information about the cctbxbb mailing list