Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rm debug statements.
  • Loading branch information
EdwardSafford-NOAA committed Nov 6, 2024
1 parent ba9b300 commit ab0f967
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 4 additions & 5 deletions ush/plotObsMon.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

# --------------------------------------------------------------------------------------------


def genYaml(input_yaml, output_yaml, config):
"""
Read in input yaml file and modify with contents of config.
Expand Down Expand Up @@ -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"
Expand All @@ -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():
Expand Down
3 changes: 0 additions & 3 deletions ush/splitPlotYaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand All @@ -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
Expand Down

0 comments on commit ab0f967

Please sign in to comment.