Skip to content

Commit afa9deb

Browse files
committed
rename pva_ioc --> epicspva
1 parent b43b39a commit afa9deb

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/fastcs/transport/epics/pva/transport.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class EpicsPVATransport(Transport):
2222
"""PV access transport."""
2323

24-
pva_ioc: EpicsIOCOptions = field(default_factory=EpicsIOCOptions)
24+
epicspva: EpicsIOCOptions = field(default_factory=EpicsIOCOptions)
2525
docs: EpicsDocsOptions | None = None
2626
gui: EpicsGUIOptions | None = None
2727

@@ -31,8 +31,8 @@ def connect(
3131
loop: asyncio.AbstractEventLoop,
3232
) -> None:
3333
self._controller_api = controller_api
34-
self._pv_prefix = self.pva_ioc.pv_prefix
35-
self._ioc = P4PIOC(self.pva_ioc.pv_prefix, controller_api)
34+
self._pv_prefix = self.epicspva.pv_prefix
35+
self._ioc = P4PIOC(self.epicspva.pv_prefix, controller_api)
3636

3737
if self.docs is not None:
3838
EpicsDocs(self._controller_api).create_docs(self.docs)

tests/data/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ transport:
33
- epicsca: {}
44
docs: {}
55
gui: {}
6-
- pva_ioc: {}
6+
- epicspva: {}
77
docs: {}
88
gui: {}
99
- rest: {}

tests/data/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
},
9999
"EpicsPVATransport": {
100100
"properties": {
101-
"pva_ioc": {
101+
"epicspva": {
102102
"$ref": "#/$defs/EpicsIOCOptions"
103103
},
104104
"docs": {

tests/example_p4p_ioc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def i(self):
9393

9494
def run(pv_prefix="P4P_TEST_DEVICE"):
9595
simple_attribute_io = SimpleAttributeIO()
96-
p4p_options = EpicsPVATransport(pva_ioc=EpicsIOCOptions(pv_prefix=pv_prefix))
96+
p4p_options = EpicsPVATransport(epicspva=EpicsIOCOptions(pv_prefix=pv_prefix))
9797
controller = ParentController(ios=[simple_attribute_io])
9898

9999
class ChildVector(ControllerVector):

tests/transport/epics/pva/test_p4p.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ async def test_numerical_alarms(p4p_subprocess: tuple[str, Queue]):
212212

213213
def make_fastcs(pv_prefix: str, controller: Controller) -> FastCS:
214214
return FastCS(
215-
controller, [EpicsPVATransport(pva_ioc=EpicsIOCOptions(pv_prefix=pv_prefix))]
215+
controller, [EpicsPVATransport(epicspva=EpicsIOCOptions(pv_prefix=pv_prefix))]
216216
)
217217

218218

0 commit comments

Comments
 (0)