-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Adding --update feature to epicsarch-qs (in progress) #376
Conversation
hutch_python/epics_arch.py
Outdated
'archFIle.') | ||
'archFile.') | ||
|
||
parser.add_argument('--update', action='store_true', default=False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think we need that argument, it serves the same purpose as --dry-run (in fact it does the exact opposite). We always want to update the existing file, never overwrite it fully.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! I am working on this now
…e, removed print statements
…d epicsArchChecker from engineering tools to hutch python. Had to change from epicsArchChecker to epicsArchChecker.py to get the module recognizable.
Description
I am currently working on adding an --update feature that looks at the current hutches epicsArch file and compares it to the questionnaire. It looks for instances of duplicate PVs and if this occurs then it will take the alias from the questionnaire instance and replace it for the one in the local epicsArch file.
Motivation and Context
This change helps to prevent duplicating PV entries across the arch files, ensures we have the most current information from the questionnaire and gives us another option besides overwriting the current file.
How Has This Been Tested?
Untested/Still in progress. (Going on vacation and want to update progress)
Where Has This Been Documented?
N/A
Pre-merge checklist
docs/pre-release-notes.sh
and created a pre-release documentation page