def csbal_single():
    '\n    This method performs the whole process for a single plane balance\n    Four data files are captured, and the results are emitted\n    args are file stem, freq(Hz), shift angle of test mass (deg), test mass '
    args = sys.argv[1:]
    if (len(args) < 4):
        print('args are stem, freq, shift_ang, test_mass')
    stem = args[0]
    freq = float(args[1])
    shift_ang = float(args[2])
    tmass = float(args[3])
    offset_1_ang = 360
    offset_2_ang = 360
    if (len(args) > 5):
        offset_1_ang = float(args[4])
        offset_2_ang = float(args[5])
    if (stem[(- 1)] != os.path.sep):
        stem = (stem + os.path.sep)
    tests = [('T0: initial unbalanced state', 't0'), ('T1: test mass at 0 deg ref', 't1'), ('T2: test mass at positive angle', 't2'), ('T3: test mass at negative angle', 't3')]
    grab_data(tests, stem)
    print('Processing captured data...')
    results = batch_process(tests, stem, freq)
    print('Balace Results:')
    bal.single_balance(results, tmass, shift_ang, offset_1_ang, offset_2_ang)
This method performs the whole process for a single plane balance
Four data files are captured, and the results are emitted
args are file stem, freq(Hz), shift angle of test mass (deg), test mass
def csbal_single():
    '\n    This method performs the whole process for a single plane balance\n    Four data files are captured, and the results are emitted\n    args are file stem, freq(Hz), shift angle of test mass (deg), test mass '
    args = sys.argv[1:]
    if (len(args) < 4):
        print('args are stem, freq, shift_ang, test_mass')
    stem = args[0]
    freq = float(args[1])
    shift_ang = float(args[2])
    tmass = float(args[3])
    offset_1_ang = 360
    offset_2_ang = 360
    if (len(args) > 5):
        offset_1_ang = float(args[4])
        offset_2_ang = float(args[5])
    if (stem[(- 1)] != os.path.sep):
        stem = (stem + os.path.sep)
    tests = [('T0: initial unbalanced state', 't0'), ('T1: test mass at 0 deg ref', 't1'), ('T2: test mass at positive angle', 't2'), ('T3: test mass at negative angle', 't3')]
    grab_data(tests, stem)
    print('Processing captured data...')
    results = batch_process(tests, stem, freq)
    print('Balace Results:')
    bal.single_balance(results, tmass, shift_ang, offset_1_ang, offset_2_ang)