Skip to content

Commit

Permalink
Merge pull request #10 from MaxHerbs/pmac-changes
Browse files Browse the repository at this point in the history
PMAC Changes
  • Loading branch information
gilesknap authored Sep 27, 2024
2 parents 67aad8c + 3f7e3b0 commit 0d53bdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder2ibek/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ def beamline(

# test with: python -m builder2ibek
if __name__ == "__main__":
main()
cli()
4 changes: 4 additions & 0 deletions src/builder2ibek/converters/pmac.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ def handler(entity: Entity, entity_type: str, ioc: Generic_IOC):
# standardise the name of the controller port
entity.rename("PORT", "PmacController")

elif entity_type in ["pmacCreateCsGroup", "pmacCsGroupAddAxis"]:
# remove GUI only parameters
entity.remove("name")

elif entity_type == "CS":
# standardise the name of the controller port
entity.rename("Controller", "PmacController")
Expand Down

0 comments on commit 0d53bdb

Please sign in to comment.