-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from builder2ibek.converters.epics_base import add_interrupt_vector | ||
from builder2ibek.converters.globalHandler import globalHandler | ||
from builder2ibek.types import Entity, Generic_IOC | ||
|
||
xml_component = "DLS8515" | ||
|
||
|
||
@globalHandler | ||
def handler(entity: Entity, entity_type: str, ioc: Generic_IOC): | ||
""" | ||
XML to YAML specialist convertor function for the pvlogging support module | ||
""" | ||
|
||
if entity_type == "DLS8515": | ||
vec = add_interrupt_vector() | ||
entity.add_entity(vec) | ||
entity.interrupt_vector = vec.name | ||
|
||
elif entity_type == "DLS8516": | ||
entity.remove("name") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from builder2ibek.converters.epics_base import add_interrupt_vector | ||
from builder2ibek.converters.globalHandler import globalHandler | ||
from builder2ibek.types import Entity, Generic_IOC | ||
|
||
xml_component = "ipac" | ||
|
||
|
||
@globalHandler | ||
def handler(entity: Entity, entity_type: str, ioc: Generic_IOC): | ||
""" | ||
XML to YAML specialist convertor function for the pvlogging support module | ||
""" | ||
|
||
if entity_type == "Hy8002": | ||
vec = add_interrupt_vector() | ||
entity.add_entity(vec) | ||
entity.interrupt_vector = vec.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from builder2ibek.converters.epics_base import add_interrupt_vector | ||
from builder2ibek.converters.globalHandler import globalHandler | ||
from builder2ibek.types import Entity, Generic_IOC | ||
|
||
xml_component = "mrfTiming" | ||
|
||
|
||
@globalHandler | ||
def handler(entity: Entity, entity_type: str, ioc: Generic_IOC): | ||
""" | ||
XML to YAML specialist convertor function for the pvlogging support module | ||
""" | ||
|
||
# TODO mrfTiming not yet implemented - does it really need a irq | ||
if entity_type == "EventReceiverPMC": | ||
vec = add_interrupt_vector() | ||
entity.add_entity(vec) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters