Skip to content

Commit

Permalink
per #1489, rearrange order of command line args so all input file arg…
Browse files Browse the repository at this point in the history
…uments come first
  • Loading branch information
georgemccabe committed Aug 18, 2022
1 parent 8c5affa commit 502bd6b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions metplus/wrappers/plot_point_obs_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,17 +236,18 @@ def set_command_line_arguments(self, time_info):
@param time_info dictionary containing timing information
"""
config_file = do_string_sub(self.c_dict['CONFIG_FILE'], **time_info)
self.args.append(f'-config {config_file}')

# if more than 1 input file was found, add them with -point_obs
for infile in self.infiles[1:]:
self.args.append(f'-point_obs {infile}')

if self.c_dict['TITLE']:
self.args.append(f"-title {self.c_dict['TITLE']}")

if self.c_dict['GRID_INPUT_PATH']:
grid_file = do_string_sub(self.c_dict['GRID_INPUT_PATH'],
**time_info)
self.args.append(f'-plot_grid {grid_file}')

config_file = do_string_sub(self.c_dict['CONFIG_FILE'], **time_info)
self.args.append(f'-config {config_file}')

if self.c_dict['TITLE']:
title = do_string_sub(self.c_dict['TITLE'], **time_info)
self.args.append(f'-title "{title}"')

0 comments on commit 502bd6b

Please sign in to comment.