Changeset 5606fc9 in flex_extract.git
- Timestamp:
- Jul 27, 2022, 3:15:02 PM (21 months ago)
- Branches:
- dev
- Children:
- b6ea29e
- Parents:
- 5adaf8a
- Location:
- Source/Python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Python/Mods/checks.py
r0a75335 r5606fc9 120 120 121 121 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, 124 124 then the four components are overwritten. 125 125 Convert to correct format of the order of magnitude "1" and sets the … … 453 453 def check_queue(queue, gateway, destination, ecuid, ecgid): 454 454 '''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). 456 456 457 457 Parameters … … 479 479 480 480 ''' 481 if queue in _config.QUEUES_LIST and \481 if queue in _config.QUEUES_LIST_ALL and \ 482 482 (not ecuid or not ecgid): 483 483 raise ValueError('\nEnvironment variables ECUID ' … … 485 485 'Please check for existence of file "ECMWF_ENV" ' 486 486 'in the run directory!') 487 elif queue in _config.QUEUES_LIST and \488 487 elif queue in _config.QUEUES_LIST_ALL and \ 488 (not gateway or not destination): 489 489 print('WARNING: Parameters GATEWAY and DESTINATION were ' 490 490 'not properly set for working on ECMWF server. \n' -
Source/Python/_config.py
r75db9b0 r5606fc9 11 11 # August 2020 - Leopold Haimberger 12 12 # - added another target for installation 13 # - added filename which will contain paths for system version 13 # - added filename which will contain paths for system version 14 14 # - checks if software runs in normal local mode or system local mode 15 # and defines paths to user directory and executable paths 15 # and defines paths to user directory and executable paths 16 16 # 17 17 # @License: … … 43 43 # ------------------------------------------------------------------------------ 44 44 45 _VERSION_STR = '7.1. 2_ctbto'45 _VERSION_STR = '7.1.3' 46 46 47 FLAG_ON_ECMWFSERVER = 'ecgb' in platform.node() 47 HOSTNAMES_BOLOGNA_LIST = ['ecs', 'aa', 'ab', 'ac', 'ad'] 48 HOSTNAMES_READING_LIST = ['ecgb', 'cca', 'ccb'] 48 49 49 QUEUES_LIST = ['ecgate', 'cca', 'ccb'] 50 # name of environment variable on ECMWF Bologna servers 51 # that indicates which cluster / host we are on 52 HOSTENV_BOLOGNA = 'EC_CLUSTER' 53 # name of environment variable on ECMWF Reading servers 54 # that indicates which cluster / host we are on 55 HOSTENV_READING = 'ECPLATFORM' 56 57 # test if we are on a Bologna or Reading server 58 59 # Test and set ECMWF Bologna server values 60 if os.getenv(HOSTENV_BOLOGNA) is not None: 61 ec_hostname = os.getenv(HOSTENV_BOLOGNA) 62 FLAG_ON_ECMWFSERVER = ec_hostname in HOSTNAMES_BOLOGNA_LIST 63 QUEUES_LIST = ['ecs', 'ecs-login', 'hpc', 'hpc-login', 'hpc-2020'] 64 # Test and set ECMWF Reading server values 65 elif os.getenv(HOSTENV_READING) is not None: 66 ec_hostname = os.getenv(HOSTENV_READING) 67 FLAG_ON_ECMWFSERVER = ec_hostname in HOSTNAMES_READING_LIST 68 QUEUES_LIST = ['ecgate', 'cca', 'ccb'] 69 else: 70 FLAG_ON_ECMWFSERVER = False 71 72 QUEUES_LIST_ALL = ['ecs', 'ecs-login', 'hpc', 'hpc-login', 'hpc-2020', 'ecgate', 'cca', 'ccb'] 50 73 51 74 INSTALL_TARGETS = ['local', 'syslocal', 'ecgate', 'cca', 'ccb']
Note: See TracChangeset
for help on using the changeset viewer.