[Scipy-svn] r2257 - trunk/Lib/sandbox/models

scipy-svn at scipy.org scipy-svn at scipy.org
Thu Oct 12 01:56:11 CDT 2006


Author: timl
Date: 2006-10-12 01:56:02 -0500 (Thu, 12 Oct 2006)
New Revision: 2257

Modified:
   trunk/Lib/sandbox/models/cox.py
Log:
remove unused variable. add FIXME for bug

Modified: trunk/Lib/sandbox/models/cox.py
===================================================================
--- trunk/Lib/sandbox/models/cox.py	2006-10-12 06:50:41 UTC (rev 2256)
+++ trunk/Lib/sandbox/models/cox.py	2006-10-12 06:56:02 UTC (rev 2257)
@@ -60,8 +60,6 @@
 
     def initialize(self, subjects):
 
-        v = [(s.delta, s.time) for s in subjects]
-
         self.failures = {}
         for i in range(len(subjects)):
             s = subjects[i]
@@ -158,6 +156,9 @@
                 raise NotImplementedError, 'Cox tie breaking method not implemented'
             else:
                 raise NotImplementedError, 'tie breaking method not recognized'
+        # FIXME: score is an int. it has no shape
+        # is it that we shouldn't be using an int above
+        # or that we shouldn't be looking at shape here
         if score.shape == ():
             score = N.array([score])
         return score



More information about the Scipy-svn mailing list