def transition_vaso_on(self):
    '\n        vasopressor state on\n        for non-diabetic:\n            sys bp: low -> normal, normal -> hi w.p. .7\n        for diabetic:\n            raise blood pressure: normal -> hi w.p. .9,\n                lo -> normal w.p. .5, lo -> hi w.p. .4\n            raise blood glucose by 1 w.p. .5\n        '
    self.state.vaso_state = 1
    if (self.state.diabetic_idx == 0):
        if (np.random.uniform(0, 1) < 0.7):
            if (self.state.sysbp_state == 0):
                self.state.sysbp_state = 1
            elif (self.state.sysbp_state == 1):
                self.state.sysbp_state = 2
    else:
        if (self.state.sysbp_state == 1):
            if (np.random.uniform(0, 1) < 0.9):
                self.state.sysbp_state = 2
        elif (self.state.sysbp_state == 0):
            up_prob = np.random.uniform(0, 1)
            if (up_prob < 0.5):
                self.state.sysbp_state = 1
            elif (up_prob < 0.9):
                self.state.sysbp_state = 2
        if (np.random.uniform(0, 1) < 0.5):
            self.state.glucose_state = min(4, (self.state.glucose_state + 1))
vasopressor state on
for non-diabetic:
    sys bp: low -> normal, normal -> hi w.p. .7
for diabetic:
    raise blood pressure: normal -> hi w.p. .9,
        lo -> normal w.p. .5, lo -> hi w.p. .4
    raise blood glucose by 1 w.p. .5
def transition_vaso_on(self):
    '\n        vasopressor state on\n        for non-diabetic:\n            sys bp: low -> normal, normal -> hi w.p. .7\n        for diabetic:\n            raise blood pressure: normal -> hi w.p. .9,\n                lo -> normal w.p. .5, lo -> hi w.p. .4\n            raise blood glucose by 1 w.p. .5\n        '
    self.state.vaso_state = 1
    if (self.state.diabetic_idx == 0):
        if (np.random.uniform(0, 1) < 0.7):
            if (self.state.sysbp_state == 0):
                self.state.sysbp_state = 1
            elif (self.state.sysbp_state == 1):
                self.state.sysbp_state = 2
    else:
        if (self.state.sysbp_state == 1):
            if (np.random.uniform(0, 1) < 0.9):
                self.state.sysbp_state = 2
        elif (self.state.sysbp_state == 0):
            up_prob = np.random.uniform(0, 1)
            if (up_prob < 0.5):
                self.state.sysbp_state = 1
            elif (up_prob < 0.9):
                self.state.sysbp_state = 2
        if (np.random.uniform(0, 1) < 0.5):
            self.state.glucose_state = min(4, (self.state.glucose_state + 1))