Changeset 5606fc9 in flex_extract.git for Source/Python/Mods/checks.py


Ignore:
Timestamp:
Jul 27, 2022, 3:15:02 PM (22 months ago)
Author:
Anne Tipka <anne.tipka@…>
Branches:
dev
Children:
b6ea29e
Parents:
5adaf8a
Message:

included checking for Bologna vs Reading servers and adapted queue and host names

File:
1 edited

Legend:

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

    r0a75335 r5606fc9  
    120120
    121121    Checks the format of the four area components wether it is on
    122     the order of 1000 or 1. 
    123     Also checks wether area was already set on command line, 
     122    the order of 1000 or 1.
     123    Also checks wether area was already set on command line,
    124124    then the four components are overwritten.
    125125    Convert to correct format of the order of magnitude "1" and sets the
     
    453453def check_queue(queue, gateway, destination, ecuid, ecgid):
    454454    '''Check if the necessary ECMWF parameters are set if the queue is
    455     one of the QUEUES_LIST (in _config).
     455    one of the QUEUES_LIST_ALL (in _config).
    456456
    457457    Parameters
     
    479479
    480480    '''
    481     if queue in _config.QUEUES_LIST and \
     481    if queue in _config.QUEUES_LIST_ALL and \
    482482            (not ecuid or not ecgid):
    483483        raise ValueError('\nEnvironment variables ECUID '
     
    485485                         'Please check for existence of file "ECMWF_ENV" '
    486486                         'in the run directory!')
    487     elif queue in _config.QUEUES_LIST and \
    488              (not gateway or not destination):
     487    elif queue in _config.QUEUES_LIST_ALL and \
     488            (not gateway or not destination):
    489489        print('WARNING: Parameters GATEWAY and DESTINATION were '
    490490              'not properly set for working on ECMWF server. \n'
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG