<div dir="auto"><div>Hi Rob,</div><div dir="auto"><br></div><div dir="auto">I don&#39;t really know the answer but instead of</div><div dir="auto"><br></div><div dir="auto">&quot;<span style="font-family:sans-serif;font-size:12.8px">If not I guess I&#39;ll have to numpy the problem :-)&quot;</span><br><br>I&#39;d rather add a functionality to do this to flex or miller.</div><div dir="auto"><br></div><div dir="auto">Pavel</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Thu, Apr 11, 2019, 10:00 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have a flex.double array of phase values between -360 and 360 degrees <br>
I would like to cast them all in one go to lie within 0 to 360. Does <br>
anybody know if there is a nice way of doing this with flex arrays? The <br>
modulo operator doesn&#39;t seem to be supported for flex arrays unlike the <br>
+, -, * and the / operators. This would otherwise be handy as I could <br>
then convert the array in one line of code like<br>
<br>
phases = phases % 360.0<br>
<br>
If not I guess I&#39;ll have to numpy the problem :-)<br>
<br>
Many thanks,<br>
<br>
Rob<br>
<br>
<br>
_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org" target="_blank" rel="noreferrer">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
</blockquote></div></div></div>