You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The checks in our scripts should be meaningful and correct to give us proper feedback
Current Behavior
There's a place in camViewer where we check if the camera name exists in a hutch via counting and then compare the count to the camera name, which is incorrect. If the line is changed to store the camera name instead of the count we still have some issues because the following checks are a bit wonky.
This gives a confusing printout but doesn't break the script because regardless of the result of the check we proceed anyway.
Slightly unrelated, but I also noticed that the tmp file is deleted in the else block but not in the if block even though it probably should be. [kaushikm@rix-control scripts]$ ls -lt /tmp/cv.* -rw-rw-r-- 1 opperman gu 251 Sep 27 13:41 /tmp/cv.2019 -rw-rw-r-- 1 opperman gu 251 Sep 27 13:14 /tmp/cv.16521 -rw-rw-r-- 1 rixopr xs 251 Sep 24 13:45 /tmp/cv.23019 -rw-rw-r-- 1 rixopr xs 251 Sep 24 10:11 /tmp/cv.26842
Although, the files are probably deleted regularly anyways since they are in /tmp/.
I missed that, good catch!
It's also probably worth considering whether we can stop using the temp file entirely by grepping through the list_cams output directly
Please make sure list cam makes sense. When working on getting my fork up-to-date, I deleted a dev version of the camviewer that really cleaned these lists up.
Expected Behavior
The checks in our scripts should be meaningful and correct to give us proper feedback
Current Behavior
There's a place in camViewer where we check if the camera name exists in a hutch via counting and then compare the count to the camera name, which is incorrect. If the line is changed to store the camera name instead of the count we still have some issues because the following checks are a bit wonky.
This gives a confusing printout but doesn't break the script because regardless of the result of the check we proceed anyway.
engineering_tools/scripts/camViewer
Lines 321 to 333 in 953c167
Possible Solution
Revise as appropriate
Context
Originally posted by @ZLLentz in #204 (comment)
The text was updated successfully, but these errors were encountered: