From ab0f9679c61d134e35d5368ac4a7479ef6ba5ec1 Mon Sep 17 00:00:00 2001 From: "edward.safford" Date: Wed, 6 Nov 2024 12:41:38 -0600 Subject: [PATCH] Ref #49 Rm debug statements. --- ush/plotObsMon.py | 9 ++++----- ush/splitPlotYaml.py | 3 --- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/ush/plotObsMon.py b/ush/plotObsMon.py index 0f8def7..ecfb612 100755 --- a/ush/plotObsMon.py +++ b/ush/plotObsMon.py @@ -19,6 +19,7 @@ # -------------------------------------------------------------------------------------------- + def genYaml(input_yaml, output_yaml, config): """ Read in input yaml file and modify with contents of config. @@ -182,8 +183,6 @@ def loadConfig(satname, instrument, obstype, plot, cycle_tm, cycle_interval, instrument = inst.get('name') for plot in inst.get('plot_list'): - logger.info(f'plot: {plot}') - config = loadConfig(satname, instrument, obstype, plot, cycle_tm, cycle_interval, data_location, model, chan_dict) plot_template = f"{config['PLOT_TEMPLATE']}.yaml" @@ -204,11 +203,11 @@ def loadConfig(satname, instrument, obstype, plot, cycle_tm, cycle_interval, plotData = OM_data(data_location, config, plot_yaml, logger) eva(plot_yaml) -# os.remove(plot_yaml) + os.remove(plot_yaml) except Exception as e: - logger.info(f'Warning: unable to run genYaml() with plot_yaml file {plot_yaml} ' + - f'error: {e}') + logger.info(f'Warning: unable to run genYaml() with plot_yaml file ' + + f'{plot_yaml} error: {e}') continue if 'minimization' in mon_dict.keys(): diff --git a/ush/splitPlotYaml.py b/ush/splitPlotYaml.py index 213eeb1..71943ce 100644 --- a/ush/splitPlotYaml.py +++ b/ush/splitPlotYaml.py @@ -126,7 +126,6 @@ def check_plotlist(type, logger, plotlist, sat=None, instr=None, obstype=None): data = mon_dict.get('data') if 'satellites' in mon_dict.keys(): - logger.info(f' split_plot, in satellites') sd = removeKey(mon_dict, ['minimization', 'observations']) for sat in mon_dict.get('satellites'): @@ -143,11 +142,9 @@ def check_plotlist(type, logger, plotlist, sat=None, instr=None, obstype=None): # For instruments with a large number of channels split the plot_list # channels = chan_dict.get(iname) - logger.info(f' channels: {channels}') nchans = 0 if channels is not None: nchans = len(channels.split(",")) - logger.info(f' nchans: {nchans}') if nchans > 100: ctr = 0