Skip to content
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 ioctool #95

Merged
merged 26 commits into from
Apr 20, 2023
Merged

Changes to ioctool #95

merged 26 commits into from
Apr 20, 2023

Conversation

spenc333
Copy link
Contributor

@spenc333 spenc333 commented Jan 19, 2022

Description

Changes to ioctool script involved making searching through config files better, adding the option to open other useful iocInfo files, allowing camera name input to find information, addition of a "cat" option and fixed issues that dealt with multiple iocs.

Motivation and Context

Fixes #79 .

How Has This Been Tested?

Tests involved sourcing the script from my epics-dev directory using various camera, pv and ioc names.

Where Has This Been Documented?

Both scripts have updated usage functions

@spenc333 spenc333 requested review from ZryletTC and ZLLentz January 19, 2022 09:29
@ZLLentz
Copy link
Member

ZLLentz commented Jan 20, 2022

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.
There's a shellcheck utility in pcds_conda and also a website https://www.shellcheck.net/

Copy link
Contributor

@ZryletTC ZryletTC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool additions 👍
I need to review the handling of multiple iocs and how functions are used further but here's a few things to go off of for now.

@ZLLentz ZLLentz self-requested a review March 31, 2023 02:21
Copy link
Member

@ZLLentz ZLLentz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is clean and useful and it probably should have been merged a while ago.

I have 3 more things to point out that could be follow-ups instead of keeping this open, or they could be addressed now at your discretion.

#################################################################

elif [ "$CMD" == "autosave" ]; then
autosavefile=/reg/d/iocData/"${NAME}"/autosave/${NAME}.sav
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch does not work for the pytmc-generated twincat IOC autosave files because the file names are different:

$ ls /cds/data/iocData/ioc-lfe-motion/autosave/
info_positions.req                info_positions.sav_210325-173832  info_positions.sav_230119-152437  info_settings.sav_201118-210022  info_settings.sav_210823-132817
info_positions.sav                info_positions.sav_210325-175539  info_positions.sav_230121-060135  info_settings.sav_210106-165713  info_settings.sav_210918-133200
info_positions.sav0               info_positions.sav_210326-165516  info_positions.sav_230121-123032  info_settings.sav_210115-133120  info_settings.sav_211005-100349
info_positions.sav1               info_positions.sav_210402-105142  info_positions.sav_230204-164422  info_settings.sav_210119-153527  info_settings.sav_211012-101144
info_positions.sav2               info_positions.sav_210423-095513  info_positions.sav_230220-064720  info_settings.sav_210211-110618  info_settings.sav_211021-102332

Copy link
Contributor Author

@spenc333 spenc333 Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will make this an issue.

@ZLLentz
Copy link
Member

ZLLentz commented Apr 20, 2023

Ok I think this is good to go, I'm going click the "merge" button

@ZLLentz ZLLentz merged commit fa56d20 into pcdshub:master Apr 20, 2023
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.

ENH: Future improvements for ioctool
3 participants