<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5921" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=901124211-11022010><FONT face=Arial size=2>Hi 
Folks,</FONT></SPAN></DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial size=2>Does anyone have a 
handy bit of CCTBX Python code which will take a spacegroup and unit cell, and a 
list of coordinates, and return the list of coordinates reduced to the 
asymmetric unit? I tried the "dumb" approach of:</FONT></SPAN></DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial size=2>use unit cell and 
sites -&gt; fractional sites</FONT></SPAN></DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial size=2>for site in 
fractional sites:</FONT></SPAN></DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial size=2>&nbsp;&nbsp;for smx 
in sg.smx()</FONT></SPAN></DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial size=2>&nbsp; &nbsp; for 
ltr in sg.ltr()</FONT></SPAN></DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apply smx, ltr</FONT></SPAN></DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; is in asu? return</FONT></SPAN></DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial size=2>and it did not 
always return an answer, so there's clearly somthing I don't understand. 
Fractional coordinates are all in [0,1).</FONT></SPAN></DIV>
<DIV><SPAN class=901124211-11022010><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=901124211-11022010>I'm sure someone 
must have done this!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=901124211-11022010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=901124211-11022010>Thanks in 
advance,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=901124211-11022010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=901124211-11022010>Graeme</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2>Graeme Winter</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Software and MX Support 
Scientist</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Diamond Light Source</FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2>+44 1235 778091 (work)</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>+44 7786 662784 (work 
mobile)</FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<br><P align=justify>&nbsp;</P>

<P align=justify>--&nbsp; </P>

<P align=justify>This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.<BR>Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. <BR>Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.<BR>Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom<BR>&nbsp;</P>
<br></BODY></HTML>