Skip to content

Commit

Permalink
support skip times in example wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Jul 22, 2021
1 parent b96a8ba commit 9f2876c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metplus/wrappers/example_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import os

from ..util import do_string_sub, ti_calculate, get_lead_sequence
from ..util import skip_time
from . import CommandBuilder

class ExampleWrapper(CommandBuilder):
Expand Down Expand Up @@ -70,6 +71,10 @@ def run_at_time(self, input_dict):
# recalculate time info items
time_info = ti_calculate(time_info)

if skip_time(time_info, self.c_dict.get('SKIP_TIMES', {})):
self.logger.debug('Skipping run time')
continue

for custom_string in self.c_dict['CUSTOM_LOOP_LIST']:
if custom_string:
self.logger.info(f"Processing custom string: {custom_string}")
Expand Down

0 comments on commit 9f2876c

Please sign in to comment.