File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed
Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,6 @@ function categorizeBGDatums(opts) {
147147
148148 var BG ;
149149 var avgDelta ;
150- var delta ;
151150 // TODO: re-implement interpolation to avoid issues here with gaps
152151 // calculate avgDelta as last 4 datapoints to better catch more rises after COB hits zero
153152 if ( typeof ( bucketedData [ i ] . glucose ) !== 'undefined' && typeof ( bucketedData [ i + 4 ] . glucose ) !== 'undefined' ) {
@@ -158,7 +157,6 @@ function categorizeBGDatums(opts) {
158157 continue ;
159158 }
160159 avgDelta = ( BG - bucketedData [ i + 4 ] . glucose ) / 4 ;
161- delta = ( BG - bucketedData [ i + 1 ] . glucose ) ;
162160 } else { console . error ( "Could not find glucose data" ) ; }
163161
164162 avgDelta = avgDelta . toFixed ( 2 ) ;
Original file line number Diff line number Diff line change @@ -73,8 +73,6 @@ function reduce (treatments) {
7373 ( state . bolus ? state . bolus . amount : 0 ) ;
7474 var has_insulin = state . insulin && state . insulin > 0 ;
7575 var has_carbs = state . carbs && state . carbs > 0 ;
76- var has_wizard = state . wizard ? true : false ;
77- var has_bolus = state . bolus ? true : false ;
7876 if ( state . square && state . bolus ) {
7977 annotate ( "DualWave bolus for" , state . square . duration , "minutes" ) ;
8078 } else if ( state . square && state . wizard ) {
You can’t perform that action at this time.
0 commit comments