-
Notifications
You must be signed in to change notification settings - Fork 27
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
Changes to camViewer #94
Conversation
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.
Added a bunch of comments/questions/suggestions
One more suggestion for any time you're doing a bash script: make sure you run the result through shellcheck, it can often help catch issues. |
…ion to let wrapper handle it. Removed pathmunge line.
It feels wrong to me to add the imgr script to engineering tools as long as it also lives in the iocmanager package - with exactly the same name. |
I agree. |
@silkenelson This is pretty much how iocmanager is done as well, do you have a better alternative? At the moment, there is no default way to use imgr than by specifying the full path to the executable. Adding it to engineering_tools adds it to everyone's PATH without extending the PATH variable. |
If I was part of that discussion, I have forgotten - I am unable to retain slack discussions for much longer than a week. Yes indeed: the answer that removing this script from iocmanager was part of this request (or at least where this was going) answers my question. |
Once #101 is merged, the imgr addition should be removed from this script, then I'll rereview this PR and we can hopefully merge. |
I'm excited to use this one, I semi-frequently find myself wishing I had the hutch selector here |
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.
Check the code, the style fixes have broken some functionality.
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.
Cool, looks good, all my tests have worked :) (after adding the commas)
Co-authored-by: Tyler Pennebaker <[email protected]>
…into camviewer-76
Description
Changes to camviewer script involved making fully worded enable and disable options as well fixing the -H option that now allows for a camera to be accessed from any hutch. Adding the imgr script to eng_tools instead of its original directory allows for control of an ioc given it's name and hutch . Also needed this script to be called in camviewer
Motivation and Context
Fixes #76
How Has This Been Tested?
Tests involved sourcing the script from my epics-dev directory using various camera names and hutches as well as the other options. Since imgr is in development and needed this command within camviewer, it also had to be sourced from epics-dev directory within the camviewer script.
Where Has This Been Documented?
Both scripts have updated usage functions