SHARE
TWEET

Untitled

a guest Jun 27th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class GlucoseEvolution(object):
  2. def __init__(self):
  3.     self.BEFORE_BREAKFAST_LOW = "before_breakfast_low"
  4.     self.BEFORE_BREAKFAST_HIGH = "before_breakfast_high"
  5.     self.BEFORE_MEALS_LOW = "before_meals_low"
  6.     self.BEFORE_MEALS_HIGH = "before_meals_high"
  7.     self.TWO_HOURS_AFTER_MEAL_MAX = "two_hours_after_meal_max"
  8.     self.BED_TIME_LOW = "bed_time_low"
  9.     self.BED_TIME_HIGH = "bed_time_high"
  10.  
  11.     self.BREAKFAST_TIME = "breakfast_time"
  12.     self.LUNCH_TIME = "lunch_time"
  13.     self.DINNER_TIME = "dinner_time"
  14.     self.BED_TIME = "bed_time"
  15.  
  16.     self.evolution_values = {
  17.         "before_breakfast_low": 70,
  18.         "before_breakfast_high": 130,
  19.         "before_meals_low": 70,
  20.         "before_meals_high": 130,
  21.         "two_hours_after_meal_max": 180,
  22.         "bed_time_low": 90,
  23.         "bed_time_high": 150
  24.     }
  25.  
  26.     self.evolution_times = {
  27.         "breakfast_time": time(9, 0, 0),
  28.         "lunch_time": time(13, 30, 0),
  29.         "dinner_time": time(21, 30, 0),
  30.         "bed_time": time(23, 30, 0)
  31.     }
  32.      
  33. glucose_evolution =  GlucoseEvolution()
  34. glucose_evolution.evolution_times.get(glucose_evolution.BED_TIME)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top