diff --git a/scripts/exglobal_stage_ic.py b/scripts/exglobal_stage_ic.py index ce0eabeb0b..ea79af1565 100755 --- a/scripts/exglobal_stage_ic.py +++ b/scripts/exglobal_stage_ic.py @@ -8,6 +8,7 @@ # Initialize root logger logger = Logger(level=os.environ.get("LOGGING_LEVEL", "DEBUG"), colored_log=True) + @logit(logger) def main(): @@ -16,7 +17,7 @@ def main(): # Instantiate the Stage object stage = Stage(config) - #Pull out all the configuration keys needed to run stage job + # Pull out all the configuration keys needed to run stage job keys = ['RUN', 'MODE', 'DO_WAVE', 'DO_OCN', 'DO_ICE', 'DO_NEST', 'current_cycle', 'EXP_WARM_START', 'CDUMP', 'rCDUMP', 'ROTDIR', 'PARMgfs', 'ntiles', 'MEMDIR', @@ -41,5 +42,6 @@ def main(): # Stage ICs stage.execute_stage(stage_dict, stage_sets) + if __name__ == '__main__': main()