[Scipy-svn] r3683 - trunk/scipy/sparse

scipy-svn@scip... scipy-svn@scip...
Mon Dec 17 23:24:30 CST 2007


Author: wnbell
Date: 2007-12-17 23:24:24 -0600 (Mon, 17 Dec 2007)
New Revision: 3683

Modified:
   trunk/scipy/sparse/compressed.py
Log:
deprecate nzmax instead of dropping it entirely


Modified: trunk/scipy/sparse/compressed.py
===================================================================
--- trunk/scipy/sparse/compressed.py	2007-12-18 04:37:30 UTC (rev 3682)
+++ trunk/scipy/sparse/compressed.py	2007-12-18 05:24:24 UTC (rev 3683)
@@ -27,12 +27,15 @@
 class _cs_matrix(_data_matrix):
     """base matrix class for compressed row and column oriented matrices"""
     
-    def __init__(self, arg1, shape=None, dtype=None, copy=False, dims=None):
+    def __init__(self, arg1, shape=None, dtype=None, copy=False, dims=None, nzmax=None):
         _data_matrix.__init__(self)
 
         if dims is not None:
-            warn("dims is deprecated, use shape instead", DeprecationWarning)
+            warn("dims= is deprecated, use shape= instead", DeprecationWarning)
             shape=dims
+        
+        if dims is not None:
+            warn("nzmax= is deprecated", DeprecationWarning)
 
         if isdense(arg1):
             # Convert the dense array or matrix arg1 to sparse format



More information about the Scipy-svn mailing list