On Sun, Jun 13, 2010 at 12:41 PM, Warren Weckesser <span dir="ltr"><<a href="mailto:warren.weckesser@enthought.com">warren.weckesser@enthought.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">David Goldsmith wrote:<br>
> Hi!  For the Examples in the numpy docstrings, we have the convention<br>
> that we do not need to include "import numpy" (because that is done by<br>
> our automated example tester) but when we're using a numpy namespace<br>
> object, we need to prefix it with "np." (because that's how our<br>
> automated tester is importing it).  Is there a similar convention for<br>
> docstring Examples in scipy?<br>
><br>
<br>
<br>
</div></div>According to <a href="http://projects.scipy.org/numpy/wiki/CodingStyleGuidelines" target="_blank">http://projects.scipy.org/numpy/wiki/CodingStyleGuidelines</a>,<br>
"The examples may assume that import numpy as np is executed before the<br>
example code in numpy, and import scipy as sp in scipy. "  But sp does<br>
not appear to be widely used; I can only find it used in<br>
ndimage.geometric_transform and ndimage.map_coordinates.<br></blockquote><div><br>Thanks, Warren, I d <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Warren<br>
<br>
<br>
> DG<br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> SciPy-Dev mailing list<br>
> <a href="mailto:SciPy-Dev@scipy.org">SciPy-Dev@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/scipy-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/scipy-dev</a><br>
><br>
<br>
_______________________________________________<br>
SciPy-Dev mailing list<br>
<a href="mailto:SciPy-Dev@scipy.org">SciPy-Dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/scipy-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/scipy-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Mathematician: noun, someone who disavows certainty when their uncertainty set is non-empty, even if that set has measure zero.<br><br>Hope: noun, that delusive spirit which escaped Pandora's jar and, with her lies, prevents mankind from committing a general suicide.  (As interpreted by Robert Graves)<br>