Changeset 0f89116 in flex_extract.git for Source/Python/Mods/prepare_flexpart.py


Ignore:
Timestamp:
Dec 19, 2019, 8:07:12 PM (4 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
a73c0f6
Parents:
0d99607
Message:

diverse changes due to PEP8 style guide and eliminating grib2flexpart; removed unused parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Source/Python/Mods/prepare_flexpart.py

    r44174de r0f89116  
    3838#    http://creativecommons.org/licenses/by/4.0/ or send a letter to
    3939#    Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
    40 #*******************************************************************************
     40# *******************************************************************************
     41# pylint: disable=ungrouped-imports
     42# not necessary that we group the imports
    4143'''This script prepares the final version of the grib files which are
    4244then used by FLEXPART.
     
    6870import inspect
    6971import sys
    70 import socket
    7172
    7273# software specific classes and modules from flex_extract
     
    7475sys.path.append(os.path.dirname(os.path.abspath(
    7576    inspect.getfile(inspect.currentframe()))) + '/../')
    76 import _config
     77# pylint: disable=wrong-import-position
     78#import _config
    7779from Mods.checks import check_ppid
    7880from Classes.UioFiles import UioFiles
    79 from Classes.ControlFile import ControlFile
    80 from Mods.tools import (setup_controldata, clean_up, get_cmdline_args,
    81                         read_ecenv, make_dir, normal_exit)
     81#from Classes.ControlFile import ControlFile
     82from Mods.tools import (setup_controldata, clean_up, make_dir, normal_exit)
    8283from Classes.EcFlexpart import EcFlexpart
     84# pylint: enable=wrong-import-position
    8385
    8486# ------------------------------------------------------------------------------
     
    146148
    147149    print('Prepare ' + start.strftime("%Y%m%d") +
    148            "/to/" + end.strftime("%Y%m%d"))
     150          '/to/' + end.strftime("%Y%m%d"))
    149151
    150152    # create output dir if necessary
     
    171173    flexpart.process_output(c)
    172174
    173     # make use of a possible conversion to a
    174     # specific flexpart binary format
    175     if c.grib2flexpart:
    176         flexpart.prepare_fp_files(c)
    177 
    178175    # check if in debugging mode, then store all files
    179176    # otherwise delete temporary files
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG