|
2010-08-21
, 08:55
|
Posts: 51 |
Thanked: 13 times |
Joined on May 2010
@ Poland
|
#112
|
This is a bug in data.py, and happens when the config file is not found. "Sample_smoothing = ..." in data.py needs to change to "sample_smoothing = ...". (Or, "sample_smoothing" in main.py needs to change to "Sample_smoothing". Not sure.)
|
2010-08-21
, 11:16
|
Posts: 197 |
Thanked: 101 times |
Joined on Dec 2009
@ Netherlands
|
#113
|
--- functions_record.py.org 2010-08-21 12:07:17.000000000 +0200 +++ functions_record.py 2010-08-21 13:07:09.000000000 +0200 @@ -103,7 +103,8 @@ Xder=0 Yder=0 XYder=0 - records.arrData[3][i]=min(XYder*data.Yscale, data.Ysize-17) #cut off if higher than graph border +# records.arrData[3][i]=min(XYder*data.Yscale, data.Ysize-17) #cut off if higher than graph border + records.arrData[3][i]=XYder records.arrData[4][i]=lastindexovertrigger # if(records.arrData[3][i]>data.Trigger): #over trigger # lastindexovertrigger=i @@ -304,7 +305,8 @@ if(records.arrData[3][p+j]>peak): peak=records.arrData[3][p+j] x=i/Xscale # x=i/Xscale+1 - paint.drawLine(x, data.Ysize-peak-1-15, x, data.Ysize-1-15) #draw yellow movement bar + h=min(peak*data.Yscale, data.Ysize-17) #cut off if higher than graph border + paint.drawLine(x, data.Ysize-h-1-15, x, data.Ysize-1-15) #draw yellow movement bar if(peak>data.Trigger):
|
2010-08-21
, 11:20
|
Posts: 197 |
Thanked: 101 times |
Joined on Dec 2009
@ Netherlands
|
#114
|
--- main.py.org 2010-08-21 12:07:23.000000000 +0200 +++ main.py 2010-08-21 13:18:25.000000000 +0200 @@ -725,7 +725,7 @@ # diff_tuple=Seconds2Tuple(diff_sec) # print diff_tuple, records.StartTime_tuple, EndTime_tuple # diff=strftime("%H:%M:%S", diff_tuple) - diff=time.strftime("%X", time.gmtime(diff_sec)) + diff=time.strftime("%H:%M:%S", time.gmtime(diff_sec)) if(diff_sec>86400): d="1 day, " #longer than 24h else: d="" self.ui.lblTimes.setText(str(d0)+" - "+str(d1)+" (Duration: "+d+str(diff)+")") @@ -1157,7 +1157,7 @@ d1=strftime("%a. %d.%m.%Y %H:%M:%S", EndTime_tuple) diff_sec=records.Index*records.Sampling_interval*records.Value_smoothing/1000 - diff=time.strftime("%X", time.gmtime(diff_sec)) + diff=time.strftime("%H:%M:%S", time.gmtime(diff_sec)) if(diff_sec>86400): diff="1 day, "+diff #longer than 24h
|
2010-08-21
, 12:27
|
|
Posts: 963 |
Thanked: 626 times |
Joined on Sep 2009
@ Connecticut, USA
|
#115
|
|
2010-08-21
, 13:54
|
Posts: 437 |
Thanked: 90 times |
Joined on Nov 2006
|
#116
|
|
2010-08-21
, 21:28
|
|
Posts: 560 |
Thanked: 423 times |
Joined on May 2010
@ Switzerland
|
#117
|
|
2010-08-22
, 09:26
|
Posts: 197 |
Thanked: 101 times |
Joined on Dec 2009
@ Netherlands
|
#118
|
|
2010-08-22
, 12:12
|
|
Posts: 560 |
Thanked: 423 times |
Joined on May 2010
@ Switzerland
|
#119
|
|
2010-08-22
, 12:26
|
|
Posts: 702 |
Thanked: 334 times |
Joined on Feb 2010
@ Israel.
|
#120
|
As it is now I always get a big spike at the end, probably because I'm lifting up the N900 to hit the button to turn off the alarm.
It has the duration of the whole sleep. It would be nice to know the duration of REM sleep to.
Demine
PeQersi