def setUp(self): self.p = Process("proc") for c in motion_block("mri", config_dir="/tmp"): self.p.add_controller(c) self.p.start() self.b = self.p.block_view("mri") self.bx = self.p.block_view("mri:COUNTERX") self.by = self.p.block_view("mri:COUNTERY")
def setUp(self): self.process = Process("proc") for controller in motion_block( mri="TESTMOTION", config_dir="/tmp") + pva_server_block(mri="PVA-SERVER"): self.process.add_controller(controller) self.process.start() self.process2 = Process("proc2") for controller in pva_client_block(mri="PVA-CLIENT") + proxy_block( mri="TESTMOTION", comms="PVA-CLIENT"): self.process2.add_controller(controller) self.process2.start()
def setUp(self): self.p = Process("proc") for c in (detector_block("DETECTOR", config_dir="/tmp") + motion_block("MOTION", config_dir="/tmp") + scan_1det_block("SCANMRI", config_dir="/tmp")): self.p.add_controller(c) self.pub = PublishController("PUB") self.p.add_controller(self.pub) self.p.start() self.b = self.p.block_view("SCANMRI") self.bd = self.p.block_view("DETECTOR") self.tmpdir = tempfile.mkdtemp()
def setUp(self): self.p = Process("process1") self.context = Context(self.p) self.p2 = Process("process2") self.context2 = Context(self.p2) # Make a motion block to act as our child for c in motion_block(mri="childBlock", config_dir="/tmp"): self.p.add_controller(c) self.b_child = self.context.block_view("childBlock") # create a root block for the RunnableController block to reside in self.c = RunnableController(mri="mainBlock", config_dir="/tmp") self.p.add_controller(self.c) self.b = self.context.block_view("mainBlock") self.ss = self.c.state_set # start the process off self.checkState(self.ss.DISABLED) self.p.start() self.checkState(self.ss.READY)
def setUp(self): self.p = Process("process") self.context = Context(self.p) # Make a motion block to act as our child for c in motion_block(mri="childBlock", config_dir="/tmp"): self.p.add_controller(c) self.b_child = self.context.block_view("childBlock") part = MisbehavingPart(mri="childBlock", name="part", initial_visibility=True) # create a root block for the RunnableController block to reside in self.c = RunnableController(mri="mainBlock", config_dir="/tmp") self.c.add_part(part) self.p.add_controller(self.c) self.b = self.context.block_view("mainBlock") self.ss = self.c.state_set # start the process off self.checkState(self.ss.DISABLED) self.p.start() self.checkState(self.ss.READY)