<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">These are basic parameters for FFT
based Fcalc calculation.<br>
<br>
algorithm = fft or direct summation<br>
wing_cutoff - is how far away from atomic center you sample
density around atom;<br>
u_base (or b_base) - is additional smearing B-factor if input atom
has too small B so it falls between the grid nodes;<br>
quality_factor - determines accuracy of sampled density.<br>
<br>
For s review, see:<br>
<br>
Acta Cryst. (2004). A60, 19-32 <br>
On a fast calculation of structure factors at a subatomic
resolution<br>
P. V. Afonine and A. Urzhumtsev<br>
<br>
and references therein.<br>
<br>
Pavel<br>
<br>
<br>
On 12/7/12 12:35 PM, Richard Gildea wrote:<br>
</div>
<blockquote
cite="mid:CACCG97GCOOBrSqt18xcZzCztz-f2sGWH+bMsTn10CvS-CggzVQ@mail.gmail.com"
type="cite">Hi Graeme,
<div><br>
</div>
<div>I agree that the documentation of much of the cctbx code is
somewhat lacking, although I am not sure what is the best
solution (especially for the huge volumes of code that is
already written). Perhaps some combination of people adding
documentation when asking or answering questions on here about
specifics would go some way to helping future users of the code.</div>
<div><br>
</div>
<div>As to your specific question:</div>
<div><br>
</div>
<div>Setting cos_sin_table=True uses interpolation of values from
a pre-calculated lookup table for trigonometric function calls
in the structure factor calculations in preference to calling
the system libraries. Ralf makes some comment on the speed (and
variation in speed) of the trigonometric functions in system
math libraries in his FABLE paper: <a moz-do-not-send="true"
href="http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3448510/">http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3448510/</a></div>
<div><br>
</div>
<div>However, without digging into the source, I am not sure of
the meaning of some of the other keywords to that function (e.g.
wing_cutoff), which makes it hard for me to write comprehensive
documentation for this class.</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Richard</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 7 December 2012 01:59, <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:Graeme.Winter@diamond.ac.uk" target="_blank">Graeme.Winter@diamond.ac.uk</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal">Hi Folks,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Been thinking some more about the
old chestnut of documentation. The lack thereof is a
well understood issue, and to be honest one which is
not going to change any time soon as no one has the
time to maintain a manual – this is fine and well
understood. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">As a kind of “patch” for this I was
wondering if it would be possible to have a forum
where someone could ask for e.g. documentation for a
currently undocumented function, which could then be
added to the subversion in the code itself. For
example:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">cctbx_project/cctbx/xray/structure.py</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">…</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> def structure_factors(self,
anomalous_flag=None, d_min=None,</p>
<p class="MsoNormal">
algorithm=None,</p>
<p class="MsoNormal">
cos_sin_table=False,</p>
<p class="MsoNormal">
quality_factor=None,</p>
<p class="MsoNormal">
u_base=None,</p>
<p class="MsoNormal">
b_base=None,</p>
<p class="MsoNormal">
wing_cutoff=None):</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">what is cos_sin_table for? with
things like this there is the attitude that it is safe
to ignore, however if we’re writing code to guide
people’s experiments it would be good to be sure of
this. Some simple documentation explaining this would
be very useful.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I’m definitely not suggesting (i)
that anyone writes a manual or (ii) that all
undocumented functions are suddenly documented, only
that there is a mechanism set up that someone could
ask about this and that someone who knows the answer
could commit the changes to cctbx and then reply with
the diffs – perhaps the way that stackoverflow works,
or an email, or something really lightweight. Even
this mailing list could be used I guess?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I would be happy to help with this,
though the above example is not one where I know the
answer!</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thoughts?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Best wishes,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Graeme</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Dr.
Graeme Winter</span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Senior
Software Scientist</span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Diamond
Light Source</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><a
moz-do-not-send="true"
href="tel:%2B44%201235%20778091"
value="+441235778091" target="_blank">+44 1235
778091</a> (work)</span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><a
moz-do-not-send="true"
href="tel:%2B44%207786%20662784"
value="+447786662784" target="_blank">+44 7786
662784</a> (work mobile)</span><span
class="HOEnZb"></span></p>
<span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</font></span></div>
<span class="HOEnZb"><font color="#888888">
<br>
<p align="justify"> </p>
<p align="justify">-- </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>
</p>
<br>
</font></span></div>
<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>
<br>
</blockquote>
</div>
<br>
</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>