Skip to content

Commit

Permalink
add I11 and I04 Vacuum XML
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Jan 16, 2025
1 parent 2cf3799 commit 971200d
Show file tree
Hide file tree
Showing 8 changed files with 3,212 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/builder2ibek/converters/epics_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class InterruptVector:
def __post_init__(self):
InterruptVector._interrupt_vector += 1

@classmethod
def reset(cls):
cls._interrupt_vector = 1


# a decorator that will be used to add an interrupt vector to the entity
def add_interrupt_vector():
Expand Down
3 changes: 2 additions & 1 deletion src/builder2ibek/converters/ipac.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ def handler(entity: Entity, entity_type: str, ioc: Generic_IOC):
entity.direction = Direction(entity.direction).name
entity.remove("name")
for key in ["invertin", "invertout", "ip_support"]:
entity[key] = make_bool(entity[key])
if key in entity:
entity[key] = make_bool(entity[key])
1 change: 0 additions & 1 deletion src/builder2ibek/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ def hex_to_int(entity: Entity, prefix: str):
"""
for n in range(10, 16):
hex_key = f"{prefix}{hex(n)[2:].upper()}"
print(hex_key)
if hex_key in entity:
entity.rename(hex_key, f"{prefix}{n}")
151 changes: 151 additions & 0 deletions tests/samples/BL04I-VA-IOC-01.xml

Large diffs are not rendered by default.

207 changes: 207 additions & 0 deletions tests/samples/BL11I-VA-IOC-01.xml

Large diffs are not rendered by default.

Loading

0 comments on commit 971200d

Please sign in to comment.