def csbal_dual_init():
    '\n    THis method performs the whole process for a dual plane balance\n    Three 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])
    if (stem[(- 1)] != os.path.sep):
        stem = (stem + os.path.sep)
    tests = [('T0: initial unbalanced state', 't0'), ('TA: test mass on bearing 1 at shift angle', 'ta'), ('TB: test mass on bearing 2 at shift angle', 'tb')]
    grab_data(tests, stem)
    print('Processing captured data...')
    results = batch_process(tests, stem, freq)
    print('Dual Plane Balance Results')
    (influence, correction) = bal.dual_compute_influence(results, tmass, shift_ang)
    inf_file = (stem + 'influence')
    with open(inf_file, 'wb') as filehandle:
        pickle.dump(influence, filehandle)
THis method performs the whole process for a dual plane balance
Three files are captured and the results are emitted
args are file stem, freq(Hz), shift angle of test mass (deg), test mass
def csbal_dual_init():
    '\n    THis method performs the whole process for a dual plane balance\n    Three 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])
    if (stem[(- 1)] != os.path.sep):
        stem = (stem + os.path.sep)
    tests = [('T0: initial unbalanced state', 't0'), ('TA: test mass on bearing 1 at shift angle', 'ta'), ('TB: test mass on bearing 2 at shift angle', 'tb')]
    grab_data(tests, stem)
    print('Processing captured data...')
    results = batch_process(tests, stem, freq)
    print('Dual Plane Balance Results')
    (influence, correction) = bal.dual_compute_influence(results, tmass, shift_ang)
    inf_file = (stem + 'influence')
    with open(inf_file, 'wb') as filehandle:
        pickle.dump(influence, filehandle)