From 502bd6b3fe29ff7fbfba8cef63a09f51825438bd Mon Sep 17 00:00:00 2001 From: George McCabe <23407799+georgemccabe@users.noreply.github.com> Date: Thu, 18 Aug 2022 14:15:08 -0600 Subject: [PATCH] per #1489, rearrange order of command line args so all input file arguments come first --- metplus/wrappers/plot_point_obs_wrapper.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/metplus/wrappers/plot_point_obs_wrapper.py b/metplus/wrappers/plot_point_obs_wrapper.py index b04d3adef3..9a532ec218 100755 --- a/metplus/wrappers/plot_point_obs_wrapper.py +++ b/metplus/wrappers/plot_point_obs_wrapper.py @@ -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}"')