Skip to content

Commit

Permalink
Ref #156
Browse files Browse the repository at this point in the history
Make requested changes.
  • Loading branch information
EdwardSafford-NOAA committed Sep 20, 2023
1 parent 6beaba0 commit 5a8a318
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/eva/plotting/emcpy/plot_tools/figure_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,18 @@ def figure_driver(config, data_collections, timing, logger):
# Get list of levels
levels_str_or_list = batch_conf.get('levels', [])
levels = parse_channel_list(levels_str_or_list, logger)
if levels != []:
# if levels != []:
if levels:
step_vars = levels
step_var_name = 'level'
title_fill = ' Lv. '

# Set some fake values to ensure the loops are entered
if variables == []:
# if variables == []:
if not variables:
logger.abort("Batch Figure must provide variables, even if with channels")
if channels == []:
# if channels == []:
if not channels:
channels = ['none']

# Loop over variables and channels
Expand Down

0 comments on commit 5a8a318

Please sign in to comment.