[Scipy-svn] r3663 - in trunk/scipy/io: . tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Sat Dec 15 00:39:06 EST 2007
Author: wnbell
Date: 2007-12-14 23:38:59 -0600 (Fri, 14 Dec 2007)
New Revision: 3663
Modified:
trunk/scipy/io/mmio.py
trunk/scipy/io/tests/test_mmio.py
Log:
changed dims= to shape=
Modified: trunk/scipy/io/mmio.py
===================================================================
--- trunk/scipy/io/mmio.py 2007-12-15 02:15:16 UTC (rev 3662)
+++ trunk/scipy/io/mmio.py 2007-12-15 05:38:59 UTC (rev 3663)
@@ -229,7 +229,7 @@
V = concatenate((V,od_V))
- a = coo_matrix((V, (I, J)), dims=(rows, cols), dtype=dtype)
+ a = coo_matrix((V, (I, J)), shape=(rows, cols), dtype=dtype)
else:
raise NotImplementedError,`rep`
Modified: trunk/scipy/io/tests/test_mmio.py
===================================================================
--- trunk/scipy/io/tests/test_mmio.py 2007-12-15 02:15:16 UTC (rev 3662)
+++ trunk/scipy/io/tests/test_mmio.py 2007-12-15 05:38:59 UTC (rev 3663)
@@ -266,7 +266,7 @@
J = array([0, 3, 1, 2, 1, 3, 4, 4])
V = array([ 1.0, 6.0, 10.5, 0.015, 250.5, -280.0, 33.32, 12.0 ])
- b = scipy.sparse.coo_matrix((V,(I,J)),dims=(5,5))
+ b = scipy.sparse.coo_matrix((V,(I,J)),shape=(5,5))
fn = mktemp()
mmwrite(fn,b)
@@ -282,7 +282,7 @@
V = array([ 1.0 + 3j, 6.0 + 2j, 10.50 + 0.9j, 0.015 + -4.4j,
250.5 + 0j, -280.0 + 5j, 33.32 + 6.4j, 12.00 + 0.8j])
- b = scipy.sparse.coo_matrix((V,(I,J)),dims=(5,5))
+ b = scipy.sparse.coo_matrix((V,(I,J)),shape=(5,5))
fn = mktemp()
mmwrite(fn,b)
More information about the Scipy-svn
mailing list