Changeset 0f89116 in flex_extract.git for Source/Python/Classes/ControlFile.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/Classes/ControlFile.py

    r44174de r0f89116  
    3838
    3939import os
    40 import re
    4140import sys
    42 import inspect
    4341
    4442# software specific classes and modules from flex_extract
     43#pylint: disable=wrong-import-position
    4544sys.path.append('../')
    4645import _config
    47 from Mods.tools import my_error, silent_remove
     46from Mods.tools import my_error
    4847from Mods.checks import (check_grid, check_area, check_levels, check_purefc,
    4948                         check_step, check_mail, check_queue, check_pathes,
     
    5352                         check_logicals_type, check_len_type_time_step,
    5453                         check_addpar, check_job_chunk, check_number)
     54#pylint: enable=wrong-import-position
    5555
    5656# ------------------------------------------------------------------------------
     
    6565    from the MARS archive for driving FLEXPART are set in a CONTROL file.
    6666    Some specific parameters like the start and end dates can be overwritten
    67     by the command line parameters, but in generel all parameters needed
     67    by the command line parameters, but in generall all parameters needed
    6868    for a complete set of fields for FLEXPART can be set in the CONTROL file.
    6969
     
    238238        Default value is ['${USER}'].
    239239
    240     grib2flexpart : int 0
    241         Switch to select generation of preprocessed FLEXPART files ".fp".
    242         If it is selected, the program grib2flexpart will try
    243         to convert the flex_extract output files into ".fp" format.
    244 
    245240    ecstorage : int
    246241        Switch to select storage of FLEXPART ready output files
     
    334329        List of the names of logical switches which controls the flow
    335330        of the program. Default list is ['gauss', 'omega', 'omegadiff', 'eta',
    336         'etadiff', 'dpdeta', 'cwc', 'wrf', 'grib2flexpart', 'ecstorage',
     331        'etadiff', 'dpdeta', 'cwc', 'wrf', 'ecstorage',
    337332        'ectrans', 'debug', 'request', 'public', 'purefc', 'rrint', 'doubleelda']
    338333    '''
     
    400395        self.mailfail = ['${USER}']
    401396        self.mailops = ['${USER}']
    402         self.grib2flexpart = 0
    403397        self.ecstorage = 0
    404398        self.ectrans = 0
     
    425419
    426420        self.logicals = ['gauss', 'omega', 'omegadiff', 'eta', 'etadiff',
    427                          'dpdeta', 'cwc', 'wrf', 'grib2flexpart', 'ecstorage',
     421                         'dpdeta', 'cwc', 'wrf', 'ecstorage',
    428422                         'ectrans', 'debug', 'oper', 'request', 'public',
    429423                         'purefc', 'rrint', 'doubleelda']
     
    602596
    603597        self.outputdir, self.installdir = check_pathes(self.inputdir,
    604              self.outputdir, self.installdir, self.flexextractdir)
     598                                                       self.outputdir,
     599                                                       self.installdir,
     600                                                       self.flexextractdir)
    605601
    606602        self.start_date, self.end_date = check_dates(self.start_date,
     
    611607        self.levelist, self.level = check_levels(self.levelist, self.level)
    612608
    613         self.step = check_step(self.step, self.mailfail)
     609        self.step = check_step(self.step)
    614610
    615611        self.maxstep = check_maxstep(self.maxstep, self.step)
     
    649645        self.job_chunk = check_job_chunk(self.job_chunk)
    650646
    651         self.number = check_number(self.number, self.mailfail)
     647        self.number = check_number(self.number)
    652648
    653649        return
     
    695691
    696692        return sorted(l)
    697 
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG