File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -19,21 +19,23 @@ def ioc(
19
19
screens_directory : Path | None = None ,
20
20
poll_period : float = DEFAULT_POLL_PERIOD ,
21
21
):
22
- p4p_ioc_options = EpicsPVAOptions (ioc = EpicsIOCOptions (pv_prefix = pv_prefix ))
23
- if screens_directory :
24
- if not screens_directory .is_dir ():
25
- raise ValueError (
26
- f"`screens_directory` { screens_directory } is not a directory"
27
- )
28
-
29
- gui_options = EpicsGUIOptions (
30
- output_path = screens_directory / "out.bob" , title = pv_prefix
31
- )
32
- p4p_ioc_options .gui = gui_options
22
+ if screens_directory and not screens_directory .is_dir ():
23
+ raise ValueError (f"`screens_directory` { screens_directory } is not a directory." )
24
+
25
+ epics_gui_options = (
26
+ EpicsGUIOptions (output_path = screens_directory / "output.bob" , title = pv_prefix )
27
+ if screens_directory
28
+ else None
29
+ )
30
+
31
+ epics_pva_options = EpicsPVAOptions (
32
+ ioc = EpicsIOCOptions (pv_prefix = pv_prefix ), gui = epics_gui_options
33
+ )
33
34
34
35
controller = PandaController (hostname , poll_period )
35
- transport = FastCS (controller , [p4p_ioc_options ])
36
- transport .run ()
36
+ launcher = FastCS (controller , [epics_pva_options ])
37
+ launcher .create_gui ()
38
+ launcher .run ()
37
39
38
40
39
41
__all__ = ["__version__" , "panda" , "types" , "DEFAULT_POLL_PERIOD" ]
You can’t perform that action at this time.
0 commit comments