Rupert -

3.1-17 isn't a version number that we generate (specifically, the -17 part). 
Where did you get it? Is this the version of FiPy in the Canopy distribution?


The failures involving _indexShape are nothing to worry about. The output is 
not literally what FiPy was expecting (long integer vs integer), but it's not a 
problem. We'll have to look into what needs to change to make the error go away.

I suspect the failure with __array_wrap__ is something similar.

The undefined solver is a bigger deal. It's good that you can explicitly set 
the solver, but FiPy should be finding scipy on its own.

That being said, I don't think you need to worry about FiPy functioning 
properly. 

Thank you for the report. We'll look into the cause of these test failures.

- Jon

> On Jul 15, 2017, at 6:49 AM, Rupert Sutherland <rupert.sutherl...@vuw.ac.nz> 
> wrote:
> 
> I have installed fipy v. 3.1-17 into an Enthought Canopy (2.1.3.3542; 64 bit) 
> python 2.7 installation in Windows 7 that has numpy (1.11.3-2) and scipy 
> (0.19.0-1).
> When I run \fipy\test.py I get ‘FAILED (failures=2, errors=6)’.
> There is a lot of dialog produced, but it seems one problem is with the 
> __import__ function not finding relevant modules. Another seems to be related 
> to number types.
> Some solvers are installed, as are some viewers. I get lots of plots ok when 
> I run \fipy\viewers\matplotlibViewer
>  
> I can make fipy run if I explicitly specify a solver using 
> os.environ['FIPY_SOLVERS'] = 'scipy'
>  
> I’m concerned that all these problems with the tests will lead to ongoing 
> issues.
> I’ve tried playing with PYTHONPATH without success. Is there an easy fix?
>  
> Thanks, Rupert Sutherland
>  
> Selected parts of output from test.py below…
> ===================================================================
> ERROR: import solvers.test
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "C:\Users\sutherru\AppData\Local\Enthought\Canopy\edm\envs\Python2-7\lib\site-packages\fipy\tests\lateImportTest.py",
>  line 53, in setUp
>     module = __import__(self.moduleName)
>   File 
> "C:\Users\sutherru\AppData\Local\Enthought\Canopy\edm\envs\Python2-7\Lib\site-packages\fipy\solvers\__init__.py",
>  line 5, in <module>
>     __all__ = list(solver.__all__)
> NameError: name 'solver' is not defined
> ======================================================================
> Similarly for the viewers; and further on…
> ======================================================================
> FAIL: __array_wrap__ (tools.dimensions.physicalField.PhysicalField)
> Doctest: tools.dimensions.physicalField.PhysicalField.__array_wrap__
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "C:\Users\sutherru\AppData\Local\Enthought\Canopy\edm\envs\Python2-7\lib\doctest.py",
>  line 2226, in runTest
>     raise self.failureException(self.format_failure(new.getvalue()))
> AssertionError: Failed doctest test for 
> tools.dimensions.physicalField.PhysicalField.__array_wrap__
>   File 
> "C:\Users\sutherru\AppData\Local\Enthought\Canopy\edm\envs\Python2-7\Lib\site-packages\fipy\tools\dimensions\physicalField.py",
>  line 618, in __array_wrap__
> ----------------------------------------------------------------------
> File 
> "C:\Users\sutherru\AppData\Local\Enthought\Canopy\edm\envs\Python2-7\Lib\site-packages\fipy\tools\dimensions\physicalField.py",
>  line 631, in tools.dimensions.physicalField.PhysicalField.__array_wrap__
> Failed example:
>     print type(numerix.array([1.0, 2.0]) * PhysicalField([1.0, 2.0])) is 
> type(numerix.array(1))
> Expected:
>     1
> Got:
>     False
> ======================================================================
> FAIL: _indexShape (tools.numerix)
> Doctest: tools.numerix._indexShape
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "C:\Users\sutherru\AppData\Local\Enthought\Canopy\edm\envs\Python2-7\lib\doctest.py",
>  line 2226, in runTest
>     raise self.failureException(self.format_failure(new.getvalue()))
> AssertionError: Failed doctest test for tools.numerix._indexShape
>   File 
> "C:\Users\sutherru\AppData\Local\Enthought\Canopy\edm\envs\Python2-7\Lib\site-packages\fipy\tools\numerix.py",
>  line 1007, in _indexShape
>  
> ----------------------------------------------------------------------
> File 
> "C:\Users\sutherru\AppData\Local\Enthought\Canopy\edm\envs\Python2-7\Lib\site-packages\fipy\tools\numerix.py",
>  line 1050, in tools.numerix._indexShape
> Failed example:
>     _indexShape(index=NUMERIX.index_exp[...,ind], 
>                 arrayShape=(10,20,30,40,50))
> Expected:
>     (10, 20, 30, 40, 2, 3, 5)
> Got:
>     (10, 20, 30, 40, 2L, 3L, 5L)
> ----------------------------------------------------------------------
> File 
> "C:\Users\sutherru\AppData\Local\Enthought\Canopy\edm\envs\Python2-7\Lib\site-packages\fipy\tools\numerix.py",
>  line 1087, in tools.numerix._indexShape
> Failed example:
>     _indexShape(index=NUMERIX.index_exp[...,ind,:], 
>                 arrayShape=(10,20,30))
> Expected:
>     (10, 2, 3, 4, 30)
> Got:
>     (10, 2L, 3L, 4L, 30)
> ----------------------------------------------------------------------
> File 
> "C:\Users\sutherru\AppData\Local\Enthought\Canopy\edm\envs\Python2-7\Lib\site-packages\fipy\tools\numerix.py",
>  line 1096, in tools.numerix._indexShape
> Failed example:
>     _indexShape(index=NUMERIX.index_exp[:,ind1,ind2], 
>                 arrayShape=(10,20,30,40,50))
> Expected:
>     (10, 2, 3, 4, 40, 50)
> Got:
>     (10, 2L, 3L, 4L, 40, 50)
> ----------------------------------------------------------------------
> File 
> "C:\Users\sutherru\AppData\Local\Enthought\Canopy\edm\envs\Python2-7\Lib\site-packages\fipy\tools\numerix.py",
>  line 1103, in tools.numerix._indexShape
> Failed example:
>     _indexShape(index=NUMERIX.index_exp[:,ind1,:,ind2,:], 
>                 arrayShape=(10,20,30,40,50))
> Expected:
>     (2, 3, 4, 10, 30, 50)
> Got:
>     (2L, 3L, 4L, 10, 30, 50)
>  
>  
> _______________________________________________
> fipy mailing list
> fipy@nist.gov
> http://www.ctcms.nist.gov/fipy
>  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]


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

Reply via email to