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

ami2 script for lcls-1 hutches #212

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

ami2 script for lcls-1 hutches #212

wants to merge 5 commits into from

Conversation

vespos
Copy link
Contributor

@vespos vespos commented Oct 9, 2024

Description

Make a script to restart/stop ami2 and start more clients

Motivation and Context

Needed for smoother operation with ami2 in LCLS-I hutches

How Has This Been Tested?

With XPP DAQ and AMI

Where Has This Been Documented?

N/A

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.

I took a look because I was curious and it seems pretty clean to me with respect to code health.

The shellcheck CI has a bunch of minor suggestions, mostly based around quoting variables and some related things.

get_status(){
grep ami2_ $STATUS_FILE | awk {'print $1"\t"$2"\t"$3'}
}
echo
Copy link
Member

@ZLLentz ZLLentz Oct 9, 2024

Choose a reason for hiding this comment

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

Is this echo left here by accident, or does it do something?

scripts/startami2 Show resolved Hide resolved
@vespos
Copy link
Contributor Author

vespos commented Oct 10, 2024

Thanks for your comments Zach! Yes I noticed I did not have pre-commit installed on my checkout and was going to fix the syntax suggestions.
I will also address the few points you are raising here.

@ZLLentz
Copy link
Member

ZLLentz commented Oct 10, 2024

One other tiny tiny thing- it'd be good to add this new script to the readme table

@vespos
Copy link
Contributor Author

vespos commented Nov 7, 2024

Still need to figure out some issues with the mypy deamon for the second client to work smoothly... Let's hold on merging until I figure this out

@vespos
Copy link
Contributor Author

vespos commented Nov 13, 2024

Ok, this is ready for review / merge!

@vespos vespos requested a review from ZLLentz November 13, 2024 00:50
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 all seems reasonable to me!
I'm not in a position to evaluate the functionality but the code health looks good, I'm dropping a soft approval here.

Copy link
Member

Choose a reason for hiding this comment

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

I think the main thing missing from my point of view is including this script in the readme table

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.

2 participants