# Command-line interface to tidynamics¶

The program reads in data from the file input_file (using np.loadtxt from NumPy) and performs the selected action on the data, chosen in:

• acf for the autocorrelation function
• msd for the mean-square displacement

The program writes the result in the file output_file using the function np.savetxt from NumPy.

from __future__ import print_function, division

import argparse
import numpy as np
import tidynamics

parser = argparse.ArgumentParser(description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
help='Choice of computation to perform on input file',
choices=['acf', 'msd'])
help='Filename for input data')
help='Filename for the result of the computation')
args = parser.parse_args()