<div dir="ltr">Hi Rob, I don&#39;t know how to create an unmerged mtz file, butĀ if you want to merge the data you can use the cctbx miller array function merge_equivalents:<div><br></div><div><span style="font-family:&quot;Courier New&quot;,Courier,monospace">mtzobj = millarr.merge_equivalents().as_mtz_dataset(column_</span><span style="font-family:&quot;Courier New&quot;,Courier,monospace">root_label=&quot;I&quot;)</span><br><div><br></div><div>I believe it does simple weighted averaging of the data using the sigmas.</div></div><div><br></div><div>-Aaron</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 4, 2020 at 6:16 AM Robert Oeffner &lt;<a href="mailto:rdo20@cam.ac.uk">rdo20@cam.ac.uk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div>
    <p>Hi,</p>
    <p>Does anybody know how to convert a miller array of unmerged data
      to an mtz object? For merged data I do something like this:</p>
    <p><font face="Courier New, Courier, monospace">mtzobj =
        millarr.as_mtz_dataset(column_root_label=&quot;I&quot;)</font></p>
    <p>But if millarr contains multiple observations with the same hkl
      index. Then the above code fails with the exception<br>
    </p>
    <p><font face="Courier New, Courier, monospace">cctbx Error:
        Duplicate entries in miller_indices array.</font></p>
    <p>Any suggestions?</p>
    <p>Many thanks,</p>
    <p>Rob<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <pre cols="72">-- 
Robert Oeffner, Ph.D.
Research Associate, The Read Group
Department of Haematology,
Cambridge Institute for Medical Research
University of Cambridge
Cambridge Biomedical Campus
The Keith Peters Building
Hills Road
Cambridge CB2 0XY
<a href="http://www.cimr.cam.ac.uk/investigators/read/index.html" target="_blank">www.cimr.cam.ac.uk/investigators/read/index.html</a>
tel: +44(0)1223 763234</pre>
  <div id="gmail-m_6611401379141108521DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid rgb(211,212,222)">
        <tbody><tr>
        <td style="width:55px;padding-top:13px"><a href="http://www.avg.com/email-signature?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:12px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="http://www.avg.com/email-signature?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=emailclient" style="color:rgb(68,83,234)" target="_blank">www.avg.com</a>
                </td>
        </tr>
</tbody></table><a href="#m_6611401379141108521_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></div>

_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
</blockquote></div>