<div dir="ltr">Random dumb question: does Aimless read unmerged Scalepack files? &nbsp;A few months ago I added a module in iotbx to export those, which might be simpler than dealing with the MTZ API. &nbsp;(Not that writing unmerged MTZ files would&#39;t be a good idea, but if you&#39;re looking for a quick solution that may not be the best route.)<div>

<br></div><div>-Nat</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 12, 2014 at 4:48 AM,  <span dir="ltr">&lt;<a href="mailto:Graeme.Winter@diamond.ac.uk" target="_blank">Graeme.Winter@diamond.ac.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Phil,<br>
<br>
Probably, but in the meantime using MTZ mean we can do things like running Aimless on the output data to see if we have made any kind of useful measurements :o)<br>
<br>
Has been a game though making full-on unmerged MTZ files!<br>
<br>
Cheerio, Graeme<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 12 Feb 2014, at 12:29, Phil Evans &lt;<a href="mailto:pre@mrc-lmb.cam.ac.uk">pre@mrc-lmb.cam.ac.uk</a>&gt; wrote:<br>
<br>
&gt; I thought you DIALS guys were going to use a new file format<br>
&gt; Phil<br>
&gt;<br>
&gt;<br>
&gt; On 12 Feb 2014, at 10:43, <a href="mailto:Graeme.Winter@Diamond.ac.uk">Graeme.Winter@Diamond.ac.uk</a> wrote:<br>
&gt;<br>
&gt;&gt; In related news&hellip;.<br>
&gt;&gt;<br>
&gt;&gt; Should<br>
&gt;&gt;<br>
&gt;&gt; void<br>
&gt;&gt; object::adjust_column_array_sizes(int new_nref)<br>
&gt;&gt; {<br>
&gt;&gt; &nbsp; CMtz::MTZ* p = ptr();<br>
&gt;&gt; &nbsp; if (!p-&gt;refs_in_memory) return;<br>
&gt;&gt; &nbsp; if (new_nref &gt; p-&gt;nref) {<br>
&gt;&gt; &nbsp; &nbsp; reserve(new_nref);<br>
&gt;&gt; &nbsp; &nbsp; for(int i=0;i&lt;p-&gt;nxtal;i++) {<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; for(int j=0;j&lt;p-&gt;xtal[i]-&gt;nset;j++) {<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; for(int k=0;k&lt;p-&gt;xtal[i]-&gt;set[j]-&gt;ncol;k++) {<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CMtz::MTZCOL* col_k = p-&gt;xtal[i]-&gt;set[j]-&gt;col[k];<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int old_size = column_array_size(col_k);<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (new_nref &gt; old_size) {<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ccp4array_resize(col_k-&gt;ref, new_nref);<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int iref=old_size;iref&lt;new_nref;iref++) {<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *(reinterpret_cast&lt;union float_uint_uchar*&gt;(<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;col_k-&gt;ref[iref])) = not_a_number_value_;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; }<br>
&gt;&gt; &nbsp; &nbsp; }<br>
&gt;&gt; &nbsp; }<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt; assign nref? otherwise repeated calling of this will keep on re-allocating the arrays<br>
&gt;&gt;<br>
&gt;&gt; Thanks Graeme<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 12 Feb 2014, at 10:40, Graeme Winter &lt;<a href="mailto:graeme.winter@diamond.ac.uk">graeme.winter@diamond.ac.uk</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; All,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; By adding<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; m_out.adjust_column_array_sizes(len(mi))<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; to the bpl &nbsp;wrapper and defining<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; m_out.set_n_reflections(len(mi))<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; in the object.h and bpl wrapper I can do what I want&hellip;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I will add some tests and some warnings that this may make nonsense of the values&hellip; however before committing any comments on the interface? or behaviour?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks Graeme<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 12 Feb 2014, at 09:11, &lt;<a href="mailto:Graeme.Winter@diamond.ac.uk">Graeme.Winter@diamond.ac.uk</a>&gt; &lt;<a href="mailto:Graeme.Winter@diamond.ac.uk">Graeme.Winter@diamond.ac.uk</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi Folks,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I am trying to create a new MTZ file containing unmerged and it seems to be less simple than I would think - set_reals() on a column requires a set of Miller indices and values and does a lookup internally (which I don&rsquo;t want for unmerged values) and set_values() requires that the array is already the right size - when it starts off as size 0 and I have no idea how to make enough room in there from the Python API&hellip;<br>


&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Any clues? I have done quite a chunk of grepping around to try and figure this one out and have run out of ideas&hellip;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks Graeme_______________________________________________<br>
&gt;&gt;&gt;&gt; cctbxbb mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://phenix-online.org/mailman/listinfo/cctbxbb" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; cctbxbb mailing list<br>
&gt;&gt; <a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
&gt;&gt; <a href="http://phenix-online.org/mailman/listinfo/cctbxbb" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; cctbxbb mailing list<br>
&gt; <a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
&gt; <a href="http://phenix-online.org/mailman/listinfo/cctbxbb" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
<br>
</div></div><br>_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
<br></blockquote></div><br></div>