Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/fastcs/transports/epics/ca/ioc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from fastcs.attributes import AttrR, AttrRW, AttrW
from fastcs.datatypes import DataType, DType_T
from fastcs.datatypes.waveform import Waveform
from fastcs.logging import bind_logger
from fastcs.methods import Command
from fastcs.tracer import Tracer
Expand Down Expand Up @@ -131,8 +132,17 @@ def _create_and_link_attribute_pvs(
pv_prefix = controller_pv_prefix(root_pv_prefix, controller_api)

for attr_name, attribute in controller_api.attributes.items():
pv_name = snake_to_pascal(attr_name)
if (
isinstance(attribute.datatype, Waveform)
and len(attribute.datatype.shape) > 1
):
logger.warning(
"Only 1D Waveform attributes are supported in EPICS CA transport",
attribute=attribute,
)
continue

pv_name = snake_to_pascal(attr_name)
full_pv_name_length = len(f"{pv_prefix}:{pv_name}")
if full_pv_name_length > EPICS_MAX_NAME_LENGTH:
attribute.enabled = False
Expand Down