#!/usr/bin/env python
"""set shot number of all uuts
.. rst-class:: hidden
usage: acq400_abort.py [-h] uut [uut ...]
configure acq400_abort
positional arguments:
uut uut
optional arguments:
-h, --help show this help message and exit
"""
import acq400_hapi
import os
import argparse
[docs]def run_commands(args):
uuts = [acq400_hapi.Acq400(u) for u in args.uuts]
for uut in uuts:
uut.s1.shot = args.shot
[docs]def get_parser():
parser = argparse.ArgumentParser(description='Set UUT shot number')
parser.add_argument('--shot', type=int, default=0)
parser.add_argument('uuts', nargs='+', help='uut1 [uut2..]')
return parser
# execution starts here
if __name__ == '__main__':
run_commands(get_parser().parse_args())