Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add title mod variable for channel/level.
  • Loading branch information
EdwardSafford-NOAA committed Sep 20, 2023
1 parent 5141b00 commit 6beaba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/eva/plotting/emcpy/plot_tools/figure_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ def figure_driver(config, data_collections, timing, logger):
channels = parse_channel_list(channels_str_or_list, logger)
step_vars = channels
step_var_name = 'channel'
title_fill = ' Ch. '

# Get list of levels
levels_str_or_list = batch_conf.get('levels', [])
levels = parse_channel_list(levels_str_or_list, logger)
if levels != []:
step_vars = levels
step_var_name = 'level'
title_fill = ' Lv. '

# Set some fake values to ensure the loops are entered
if variables == []:
Expand All @@ -97,7 +99,7 @@ def figure_driver(config, data_collections, timing, logger):
step_var_str = str(step_var)
if step_var_str != 'none':
batch_conf_this[step_var_name] = step_var_str
var_title = batch_conf_this['variable_title'] + ' Ch. ' + step_var_str
var_title = batch_conf_this['variable_title'] + title_fill + step_var_str
batch_conf_this['variable_title'] = var_title

# Replace templated variables in figure and plots config
Expand Down

0 comments on commit 6beaba0

Please sign in to comment.