When we're doing the satamp swaps, we always need to write alog comments for each serial number that was updated. The alogs have repetitive text but have multiple values that need to be changed, and it's time-consuming and easy to miss changing something. I've written a script that automatically grabs the info and copies it to your clipboard so you can paste it into an alog.
The script that I made for auto-generating the satamp swap alog is here as r12693:
/ligo/svncommon/SusSVN/sus/trunk/electronicstesting/lho_electronics_testing/satamp/ECR_E2400330/Scripts/satampalog.py
You can run it by entering the serial number of the satamp and using one of the following flags: --uk4ch, --us4ch, or --us8ch for the satamp type.
Example:
$ python3 satampalog_4Jeff.py S1100147 --uk4ch
Alog for S1100147 is copied to clipboard. CRTL+V into alog and 'Preview' or 'Save to Draft' to fix formatting.
Pasting into an alog initially, it'll look like
this
Click 'Save to Draft' to fix the formatting. It'll then look like
this