-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert magnet to use pydantic model (#104)
* magnets and screen conversion from csv to dictionary structures working. Can extract by area * add functionality for extracting multiple areas at once * add PVs to yaml magnets extraction * removing unneeded file * working on adding image pvs to yaml files * working on image device code * flake8 and black formatting * make construction function self, add error handling for MEME timeout * formatting * make area a list in screens * add pv_info to screen construction * restrict wildcard search in meme * added models for magnet and associated fields * start to move magnet functions over to pydantic model * magnet pydantic model working with reader now * updated yaml test files to reflect new yaml for devices * magnet and reader tests up to date with pydantic changes, minimal functional changes to tests * make MagnetPVSet have frozen attributes.# * make MagnetPVSet have frozen attributes. * frozen for controls_information base class * missed return for area property! * add setter for bdes * working on being able to set bdes values for several mags * find file by area in reader * use area over location for scope * change yaml path. * remove path * first attempt at function to scan mags * magnet and device now using pydantic model * tests reflect model changes, need to check coverage * add check for function in scan * remove custom exception, pydantic handles mandatory information now * coverage up to 100% for each new class now * formatting * add pydantic to requirements * remove superceeded yaml * add comments for units in tolerance/length * add comment explaining adding name for device here --------- Co-authored-by: Neveu <nneveu@pc101046.slac.stanford.edu> Co-authored-by: Neveu <nneveu@stanford.edu> Co-authored-by: matt <matt@SLACMachine.myguest.virtualbox.org>
- Loading branch information
1 parent
a3c2fc3
commit 151a2cb
Showing
12 changed files
with
792 additions
and
333 deletions.
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
Oops, something went wrong.