File: kde.diff

package info (click to toggle)
python-scipy 0.10.1%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 42,232 kB
  • sloc: cpp: 224,773; ansic: 103,496; python: 85,210; fortran: 79,130; makefile: 272; sh: 43
file content (13 lines) | stat: -rw-r--r-- 511 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: python-scipy-0.10.1+dfsg1/scipy/stats/kde.py
===================================================================
--- python-scipy-0.10.1+dfsg1.orig/scipy/stats/kde.py	2012-02-21 17:50:07.000000000 -0500
+++ python-scipy-0.10.1+dfsg1/scipy/stats/kde.py	2012-04-20 02:33:16.604248470 -0400
@@ -79,7 +79,7 @@
     """
 
     def __init__(self, dataset):
-        self.dataset = atleast_2d(dataset)
+        self.dataset = atleast_2d(dataset).astype('float')
 
         self.d, self.n = self.dataset.shape