<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Why move discussion off line? I see myself using this sometime in
    future, so I'd like to know quality/usability-status of the code
    being out there. My opinion is binary in this respect: if it is out
    there I expect it it works and I can trust it. If it is it not
    otherwise ..... - please tell me why I should not trust your
    contribution to the open source library? <br>
    <br>
    Pavel <br>
    <br>
    �<br>
    <div class="moz-cite-prefix">On 5/9/15 2:15 PM, Peter Zwart wrote:<br>
    </div>
    <blockquote
cite="mid:CALE9nFE21UXfPAhXaWJiKmZ3x2r0cjNJL46cdPcLhuZ82tEowA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Graeme,
        <div><br>
        </div>
        <div>I can clean this up, the monster is an overkill. Can we
          chat offline tomorrow / Monday?</div>
        <div><br>
        </div>
        <div>P</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 9 May 2015 at 13:07, <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              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 Folks<br>
            <br>
            Digging around some more found the test for the Zernike
            stuff, now have<br>
            <br>
            from __future__ import division<br>
            <br>
            def tst_nss_spherical_harmonics():<br>
            � from scitbx import math<br>
            � from scitbx.array_family import flex<br>
            � N=50<br>
            � M=20<br>
            � lfg =� math.log_factorial_generator(N)<br>
            � nsssphe = math.nss_spherical_harmonics(M+5,50000,lfg)<br>
            <br>
            � l = 2<br>
            � m = 1<br>
            � t = 1<br>
            � p = 1<br>
            <br>
            � print nsssphe.spherical_harmonic(2, 1, 1, 1)<br>
            <br>
            tst_nss_spherical_harmonics()<br>
            <br>
            Not clear what a log factorial generator is, but seems to
            work<br>
            <br>
            if I am only caring about small integer l for Ylm do I need
            to have the big numbers above?<br>
            <br>
            Thanks Graeme<br>
            <div class="HOEnZb">
              <div class="h5"><br>
                &gt; On 9 May 2015, at 20:58, <a moz-do-not-send="true"
                  href="mailto:Graeme.Winter@Diamond.ac.uk">Graeme.Winter@Diamond.ac.uk</a>
                wrote:<br>
                &gt;<br>
                &gt; Hi Folks,<br>
                &gt;<br>
                &gt; Looked and something is used from boost but they
                don�t appear to be clearly wrapped to Python.<br>
                &gt;<br>
                &gt; in<br>
                &gt;<br>
                &gt; scitbx.math.nss_spherical_harmonics<br>
                &gt;<br>
                &gt; found nearly what I was looking for but it seems to
                be for some other purpose &amp; not really do what I
                want (and needs mystery things in constructor�.)<br>
                &gt;<br>
                &gt;&gt;&gt;&gt; _sh = sh(2, 1)<br>
                &gt; Traceback (most recent call last):<br>
                &gt;� File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br>
                &gt; Boost.Python.ArgumentError: Python argument types
                in<br>
                &gt;� �
                nss_spherical_harmonics.__init__(nss_spherical_harmonics,
                int, int)<br>
                &gt; did not match C++ signature:<br>
                &gt;� � __init__(_object*, int l_max, int mangle,
                scitbx::math::zernike::log_factorial_generator&lt;double&gt;
                lgf)<br>
                &gt;<br>
                &gt;<br>
                &gt; Any clues would be welcome, else wise most sensible
                thing seems to be to wrap up to Python the boost
                spherical harmonic code�<br>
                &gt;<br>
                &gt; Thanks Graeme<br>
                &gt;<br>
                &gt;<br>
                &gt; --<br>
                &gt; 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>
                &gt; Any opinions expressed within this e-mail are those
                of the individual and not necessarily of Diamond Light
                Source Ltd.<br>
                &gt; 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>
                &gt; 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>
                &gt;<br>
                &gt; _______________________________________________<br>
                &gt; cctbxbb mailing list<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://phenix-online.org/mailman/listinfo/cctbxbb"
                  target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
                <br>
                <br>
                _______________________________________________<br>
                cctbxbb mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
                <a moz-do-not-send="true"
                  href="http://phenix-online.org/mailman/listinfo/cctbxbb"
                  target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div>-----------------------------------------------------------------<br>
                  P.H. Zwart<br>
                  Staff Scientist<br>
                  Berkeley Center for Structural Biology, Science lead<br>
                  Lawrence Berkeley National Laboratories<br>
                  1 Cyclotron Road, Berkeley, CA-94703, USA<br>
                  Cell: 510 289 9246<br>
                  SASTBX:� <a moz-do-not-send="true"
                    href="http://sastbx.als.lbl.gov" target="_blank">http://sastbx.als.lbl.gov</a></div>
                <div>BCSB:� � � <a moz-do-not-send="true"
                    href="http://bcsb.als.lbl.gov" target="_blank">http://bcsb.als.lbl.gov</a><br>
                </div>
                <div>PHENIX:�� <a moz-do-not-send="true"
                    href="http://www.phenix-online.org" target="_blank">http://www.phenix-online.org</a></div>
                <div>CAMERA:�<a moz-do-not-send="true"
                    href="http://camera.lbl.gov/" target="_blank">http://camera.lbl.gov/</a></div>
                <div>-----------------------------------------------------------------</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
cctbxbb mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a>
<a class="moz-txt-link-freetext" href="http://phenix-online.org/mailman/listinfo/cctbxbb">http://phenix-online.org/mailman/listinfo/cctbxbb</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>