def setup(self):
    self.root = RootTask(should_stop=Event(), should_pause=Event())
    self.task = ApplyMagFieldTask(name='Test', parallel={'activated': False})
    self.root.add_child_task(0, self.task)
    self.root.run_time[DRIVERS] = {'Test': (InstrHelper, InstrHelperStarter())}
    self.root.run_time[PROFILES] = {'Test1': {'connections': {'C': {'owner': [], 'output_fluctuations': 1e-06, 'heater_state': []}}, 'settings': {'S': {'sweep_to_field': [DummyJob(), DummyJob(), DummyJob()], 'sweep_to_persistent_field': [DummyJob()], 'read_persistent_field': [1], 'check_connection': [True]}}}}
    self.task.selected_instrument = ('Test1', 'Test', 'C', 'S')
def setup(self):
    self.root = RootTask(should_stop=Event(), should_pause=Event())
    self.task = ApplyMagFieldTask(name='Test', parallel={'activated': False})
    self.root.add_child_task(0, self.task)
    self.root.run_time[DRIVERS] = {'Test': (InstrHelper, InstrHelperStarter())}
    self.root.run_time[PROFILES] = {'Test1': {'connections': {'C': {'owner': [], 'output_fluctuations': 1e-06, 'heater_state': []}}, 'settings': {'S': {'sweep_to_field': [DummyJob(), DummyJob(), DummyJob()], 'sweep_to_persistent_field': [DummyJob()], 'read_persistent_field': [1], 'check_connection': [True]}}}}
    self.task.selected_instrument = ('Test1', 'Test', 'C', 'S')