Skip to content

Add toroid controls and update YAML - #55

Open
kabanaty wants to merge 9 commits into
slaclab:mainfrom
kabanaty:charge-toroids
Open

Add toroid controls and update YAML#55
kabanaty wants to merge 9 commits into
slaclab:mainfrom
kabanaty:charge-toroids

Conversation

@kabanaty

Copy link
Copy Markdown
Collaborator

This pull request adds support for handling toroid (charge monitor) devices in the codebase, similar to how PMTs and BPMs are managed. The main changes introduce methods for extracting toroid data and update the configuration and metadata files to include toroid devices for various areas.

Toroid device extraction and integration:

  • Added the extract_toroids method to the main generator class, enabling extraction and enrichment of toroid device data with metadata and controls information.
  • Registered extract_toroids in the device extraction mapping, allowing toroids to be included in YAML generation.

Metadata and controls information support:

  • Implemented placeholder functions get_toroid_metadata and get_toroid_controls_information, mirroring the structure for other device types. These currently raise NotImplementedError if specific toroid names are requested, and return empty dicts otherwise.
  • Updated imports in generate.py to include the new toroid metadata and controls information functions.
    Configuration file updates:
  • Extended the wire_area_metadata.yaml file to add a charge_toroids section for each relevant area, listing the associated toroid devices.

@kabanaty
kabanaty marked this pull request as ready for review July 27, 2026 22:36
@kabanaty
kabanaty requested a review from eloise-nebula July 27, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant