On Feb 26, 2012, at 8:34 PM, Yun Tao wrote:

> This may be a trivial question but I have a hard time finding an explanation:
> 
> I wrote a series of elementary FiPy script (variants on the basic diffusion 
> examples). For a long time, they run smoothly. However, after working with 
> the latest unofficial FiPy release (operated under a different directory) for 
> a while,

First off, the sourcecode in trunk/ is provided without support. 

> all the old scripts no longer recognize functions like "exp" and "pi" unless 
> I explicitly append "from numpy import *" at the beginning.

I thought the documentation was more explicit about this, but you should never 
import directly from numpy. Always use fipy.tools.numerix as a substitute for 
numpy. FiPy overrides much of numpy's behavior and so the direct numpy 
functions may not behave as expected when applied to numpy objects. This has 
been stated numerous times on the mailing list and there is a note at 

  
http://www.ctcms.nist.gov/fipy/documentation/FAQ.html?highlight=numpy#what-if-the-term-isn-t-one-of-those

but we need to make a clearer statement in the documentation.

> A second look at 
> <http://www.ctcms.nist.gov/fipy/examples/diffusion/generated/examples.diffusion.mesh1D.html>
>  shows that this shouldn't be necessary.

The documentation at http://www.ctcms.nist.gov/fipy is for FiPy 2.1.3, as shown 
in the sidebar and title of every page. trunk/ will be released as FiPy 3.0 
because of incompatibilities such as this. The sourcecode is the documentation 
for trunk/. The sourcecode in trunk/ is provided without support

> So my question simply is: what might have been modified along the way and how 
> can it be fixed? 

As explained in the README 
<http://matforge.org/fipy/browser/trunk/README.txt#L59>

- The functions of the :mod:`~fipy.tools.numerix` module are no longer
  included in the :mod:`fipy` namespace. See 
:mod:`examples.updating.update2_0to3_0` 
  for details.


And, finally, the sourcecode in trunk/ is provided *without support*


_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to