From 0286551444b46461727fdd520457c94580b243bf Mon Sep 17 00:00:00 2001 From: Henrik Andersen Sveinsson Date: Wed, 11 Dec 2024 11:50:25 +0100 Subject: [PATCH] Update cmd_interface.py --- lammps_logfile/cmd_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lammps_logfile/cmd_interface.py b/lammps_logfile/cmd_interface.py index 34c2893..e405146 100644 --- a/lammps_logfile/cmd_interface.py +++ b/lammps_logfile/cmd_interface.py @@ -5,10 +5,10 @@ def get_parser(): parser = argparse.ArgumentParser(description="Plot contents from lammps log files") - parser.add_argument("input_file", metavar='INPUT_FILE', type=str, help="Lammps log file containing thermo output from lammps simulation.") parser.add_argument("-x", type=str, default="Time", help="Data to plot on the first axis") parser.add_argument("-y", type=str, nargs="+", help="Data to plot on the second axis. You can supply several names to get several plot lines in the same figure.") parser.add_argument("-a", "--running_average", type=int, default=1, help="Optionally average over this many log entries with a running average. Some thermo properties fluctuate wildly, and often we are interested in te running average of properties like temperature and pressure.") + parser.add_argument("input_file", metavar='INPUT_FILE', type=str, help="Lammps log file containing thermo output from lammps simulation.") return parser def run():