Skip to content

Commit

Permalink
Ignore motor records in template convert
Browse files Browse the repository at this point in the history
  • Loading branch information
GDYendell committed Jan 30, 2024
1 parent e2530b0 commit 962b199
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pvi/_convert/_template_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ def _extract_infos(self, fields_str: str) -> List[Tuple[str, str]]:

def _create_asyn_record(self, record_str: str) -> AsynRecord:
record_type, record_name, record_fields = self._parse_record(record_str)

if record_type == "motor":
newline = "\n"
raise RecordError(
f"Record `{record_str.split(newline)[0]}` is type motor - ignoring"
)

fields = dict(self._extract_fields(record_fields))
info = dict(self._extract_infos(record_fields))
record = AsynRecord(
Expand Down

0 comments on commit 962b199

Please sign in to comment.