##// END OF EJS Templates
Fix bug in noise estimation
jespinoza -
r1364:ec95f8e6ce79
parent child
Show More
@@ -24,7 +24,7 static PyObject *hildebrand_sekhon(PyObject *self, PyObject *args) {
24 24 if (nums_min <= 5) nums_min = 5;
25 25 double sump = 0;
26 26 double sumq = 0;
27 int j = 0;
27 long j = 0;
28 28 int cont = 1;
29 29 double rtest = 0;
30 30 while ((cont == 1) && (j < lenOfData)) {
@@ -46,8 +46,8 static PyObject *hildebrand_sekhon(PyObject *self, PyObject *args) {
46 46
47 47 Py_DECREF(data_array);
48 48
49 return PyLong_FromLong(lnoise);
50 //return Py_BuildValue("d", lnoise);
49 // return PyLong_FromLong(lnoise);
50 return PyFloat_FromDouble(lnoise);
51 51 }
52 52
53 53
@@ -435,6 +435,9 class Spectra(JROData):
435 435 Constructor
436 436 '''
437 437
438 self.data_dc = None
439 self.data_spc = None
440 self.data_cspc = None
438 441 self.useLocalTime = True
439 442 self.radarControllerHeaderObj = RadarControllerHeader()
440 443 self.systemHeaderObj = SystemHeader()
General Comments 0
You need to be logged in to leave comments. Login now