I've just installed and begun using labeled-array. First, thanks for
this great package!
So far, larrys seem to be behaving as expected, but when I try to run
la.test(), it doesn't appear to run any tests.
>>> import la
>>> la.test()
Running unit tests for la
NumPy version 1.6.1
NumPy is installed in /Library/Frameworks/Python.framework/Versions/
7.1/lib/python2.7/site-packages/numpy
Python version 2.7.2 |EPD 7.1-2 (32-bit)| (default, Jul 27 2011,
13:29:32) [GCC 4.0.1 (Apple Inc. build 5493)]
nose version 1.0.0
----------------------------------------------------------------------
Ran 0 tests in 0.003s
OK
<nose.result.TextTestResult run=0 errors=0 failures=0>
On Wed, May 16, 2012 at 5:06 PM, Travis Ruthenburg
<travis.r...@gmail.com> wrote:
> So far, larrys seem to be behaving as expected, but when I try to run
> la.test(), it doesn't appear to run any tests.
I have no idea why no tests ran. So let's start with some top level diagnostics.
What does la.info() return?
In [1]: import la
In [2]: la.info()
la 0.7.0dev
la file la/__init__.pyc
NumPy 1.6.1
Bottleneck 0.6.0dev
HDF5 archiving Not available
listmap Faster C version
listmap_fill Faster C version
Do you have a directory named la/la/tests? And does it contain a bunch
of python files:
Thanks for the quick response. Included is the la.info() output and a directory listing for the test directory. I think I installed la with easy_install.
>>> la.info()
la 0.6.0
la file /Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packag es/la-0.6.0-py2.7-macosx-10.5-i386.egg/la/__init__.pyc
NumPy 1.6.1
Bottleneck 0.5.0
HDF5 archiving Available (h5py 2.0.0) listmap Faster C version listmap_fill Faster C version
> On Wed, May 16, 2012 at 5:06 PM, Travis Ruthenburg
> <travis.r...@gmail.com> wrote:
>> So far, larrys seem to be behaving as expected, but when I try to run
>> la.test(), it doesn't appear to run any tests.
> I have no idea why no tests ran. So let's start with some top level diagnostics.
> What does la.info() return?
> In [1]: import la
> In [2]: la.info()
> la 0.7.0dev
> la file la/__init__.pyc
> NumPy 1.6.1
> Bottleneck 0.6.0dev
> HDF5 archiving Not available
> listmap Faster C version
> listmap_fill Faster C version
> Do you have a directory named la/la/tests? And does it contain a bunch
> of python files:
> Thanks for the quick response. Included is the la.info() output and a directory listing for the test directory. I think I installed la with easy_install.
In [17]: la.test(extra_argv=['--exe'])
Running unit tests for la
NumPy version 1.6.1
NumPy is installed in /Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packag es/numpy
Python version 2.7.2 |EPD 7.1-2 (32-bit)| (default, Jul 27 2011, 13:29:32) [GCC 4.0.1 (Apple Inc. build 5493)]
nose version 1.0.0
/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packag es/la-0.6.0-py2.7-macosx-10.5-i386.egg/la/farray/misc.py:117: RuntimeWarning: invalid value encountered in double_scalars
x1 = x1 - x1.mean()
/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packag es/la-0.6.0-py2.7-macosx-10.5-i386.egg/la/farray/misc.py:118: RuntimeWarning: invalid value encountered in double_scalars
x2 = x2 - x2.mean()
/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packag es/la-0.6.0-py2.7-macosx-10.5-i386.egg/la/farray/misc.py:134: RuntimeWarning: invalid value encountered in double_scalars
return num / den
./Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packa ges/la-0.6.0-py2.7-macosx-10.5-i386.egg/la/farray/misc.py:93: RuntimeWarning: invalid value encountered in double_scalars
x1 = x1 - x1.mean()
/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packag es/la-0.6.0-py2.7-macosx-10.5-i386.egg/la/farray/misc.py:94: RuntimeWarning: invalid value encountered in double_scalars
x2 = x2 - x2.mean()
........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... .............................................................F............. ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ..............................................................
======================================================================
FAIL: Test larry methods for proper handling of empty larrys
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packa ges/nose/case.py", line 187, in runTest
self.test(*self.arg)
File "/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packa ges/numpy/testing/utils.py", line 34, in assert_
raise AssertionError(msg)
AssertionError: Type of 'actual' and 'desired' do not match for 'nx'
----------------------------------------------------------------------
Ran 3063 tests in 3.399s
> On Thu, May 17, 2012 at 2:21 AM, Travis Ruthenburg
> <travis.r...@gmail.com> wrote:
>> Hi,
>> Thanks for the quick response. Included is the la.info() output and a directory listing for the test directory. I think I installed la with easy_install.
On Thu, May 17, 2012 at 7:44 AM, Travis Ruthenburg
<travis.r...@gmail.com> wrote:
> ======================================================================
> FAIL: Test larry methods for proper handling of empty larrys
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packa ges/nose/case.py", line 187, in runTest
> self.test(*self.arg)
> File "/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packa ges/numpy/testing/utils.py", line 34, in assert_
> raise AssertionError(msg)
> AssertionError: Type of 'actual' and 'desired' do not match for 'nx'
Setuptools installs python scripts with an executable flag and nose
does not run these by default in most versions. AFAIK most projects
monkey patch numpy.testing.Tester. Something like