Esempio n. 1
0
 def estimateModifiedByUser(self):
     return (BinaryDataDecoder.readUInt32BE(self.eventData, 0x30)
             & 0x01) == 0x01
Esempio n. 2
0
 def rate(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x0D
     ) / 10000.0  # return this.eventData.readUInt32BE(0x0D) / 10000.0;
Esempio n. 3
0
 def bolusWizardEstimate(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x2B) / 10000.0
Esempio n. 4
0
 def finalEstimate(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x31) / 10000.0
Esempio n. 5
0
 def iob(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x23) / 10000.0
Esempio n. 6
0
 def iobAdjustment(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x27) / 10000.0
Esempio 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
Esempio n. 8
0
 def foodEstimate(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x1F) / 10000.0
Esempio n. 9
0
 def activeInsulin(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x16
     ) / 10000.0  #return this.eventData.readUInt32BE(0x16) / 10000.0;
Esempio n. 10
0
 def programmedAmount(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x0E
     ) / 10000.0  #return this.eventData.readUInt32BE(0x12) / 10000.0;
Esempio n. 11
0
 def deliveredAmount(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x12
     ) / 10000.0  #return this.eventData.readUInt32BE(0x12) / 10000.0;