Ejemplo n.º 1
0
 def estimateModifiedByUser(self):
     return (BinaryDataDecoder.readUInt32BE(self.eventData, 0x30)
             & 0x01) == 0x01
Ejemplo n.º 2
0
 def rate(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x0D
     ) / 10000.0  # return this.eventData.readUInt32BE(0x0D) / 10000.0;
Ejemplo n.º 3
0
 def bolusWizardEstimate(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x2B) / 10000.0
Ejemplo n.º 4
0
 def finalEstimate(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x31) / 10000.0
Ejemplo n.º 5
0
 def iob(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x23) / 10000.0
Ejemplo n.º 6
0
 def iobAdjustment(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x27) / 10000.0
Ejemplo n.º 7
0
 def carbRatio(self):
     carbRatio = BinaryDataDecoder.readUInt32BE(self.eventData, 0x13)
     return carbRatio / 10.0 if (
         self.carbUnits
         == NGPConstants.CARB_UNITS.GRAMS) else carbRatio / 1000.0
Ejemplo n.º 8
0
 def foodEstimate(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x1F) / 10000.0
Ejemplo n.º 9
0
 def activeInsulin(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x16
     ) / 10000.0  #return this.eventData.readUInt32BE(0x16) / 10000.0;
Ejemplo n.º 10
0
 def programmedAmount(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x0E
     ) / 10000.0  #return this.eventData.readUInt32BE(0x12) / 10000.0;
Ejemplo n.º 11
0
 def deliveredAmount(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x12
     ) / 10000.0  #return this.eventData.readUInt32BE(0x12) / 10000.0;