def transition_vent_off(self):
    '\n        ventilation state off\n        if ventilation was on: percent oxygen: normal -> lo w.p. .1\n        '
    if (self.state.vent_state == 1):
        if ((self.state.percoxyg_state == 1) and (np.random.uniform(0, 1) < 0.1)):
            self.state.percoxyg_state = 0
        self.state.vent_state = 0
ventilation state off
if ventilation was on: percent oxygen: normal -> lo w.p. .1
def transition_vent_off(self):
    '\n        ventilation state off\n        if ventilation was on: percent oxygen: normal -> lo w.p. .1\n        '
    if (self.state.vent_state == 1):
        if ((self.state.percoxyg_state == 1) and (np.random.uniform(0, 1) < 0.1)):
            self.state.percoxyg_state = 0
        self.state.vent_state = 0