def is_sim_running(self):
    if (self.state.ir_connected and (not (self.ir.is_initialized and self.ir.is_connected))):
        self.state.ir_connected = False
        self.state.last_car_setup_tick = (- 1)
        self.ir.shutdown()
        print('irsdk disconnected')
    elif ((not self.state.ir_connected) and self.ir.startup(test_file='./data/data.bin') and self.ir.is_initialized and self.ir.is_connected):
        self.state.ir_connected = True
        print('irsdk connected')
def is_sim_running(self):
    if (self.state.ir_connected and (not (self.ir.is_initialized and self.ir.is_connected))):
        self.state.ir_connected = False
        self.state.last_car_setup_tick = (- 1)
        self.ir.shutdown()
        print('irsdk disconnected')
    elif ((not self.state.ir_connected) and self.ir.startup(test_file='./data/data.bin') and self.ir.is_initialized and self.ir.is_connected):
        self.state.ir_connected = True
        print('irsdk connected')