Skip to content

Commit

Permalink
Update cmd_interface.py
Browse files Browse the repository at this point in the history
moved the input file argument after the keyword arguments to make the help message consistent with the behaviour of the interface
  • Loading branch information
henriasv authored Dec 11, 2024
1 parent b7e87d7 commit 31f6938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lammps_logfile/cmd_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

def get_parser():
parser = argparse.ArgumentParser(description="Plot contents from lammps log files")
parser.add_argument("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", type=str, help="Lammps log file containing thermo output from lammps simulation.")
return parser

def run():
Expand Down

0 comments on commit 31f6938

Please sign in to comment.