Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flex Extract
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Flexpart
Flex Extract
Commits
91e4dba6
Commit
91e4dba6
authored
5 years ago
by
Anne Philipp
Browse files
Options
Downloads
Patches
Plain Diff
python2 downgrade / minor adaptations
parent
8ce3be62
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/python/_config.py
+9
-5
9 additions, 5 deletions
source/python/_config.py
with
9 additions
and
5 deletions
source/python/_config.py
+
9
−
5
View file @
91e4dba6
#!/usr/bin/env python
3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
#*******************************************************************************
#*******************************************************************************
# @Author: Anne Philipp (University of Vienna)
# @Author: Anne Philipp (University of Vienna)
...
@@ -27,15 +27,19 @@ and pathes.
...
@@ -27,15 +27,19 @@ and pathes.
import
os
import
os
import
sys
import
sys
import
inspect
import
inspect
import
socket
import
platform
# ------------------------------------------------------------------------------
# PARAMETERS
# ------------------------------------------------------------------------------
_VERSION_STR
=
'
7.1
'
_VERSION_STR
=
'
7.1
'
FLAG_ON_ECMWFSERVER
=
'
ec
mwf
'
in
socket
.
gethostnam
e
()
FLAG_ON_ECMWFSERVER
=
'
ec
gb
'
in
platform
.
nod
e
()
QUEUES_LIST
=
[
'
ecgate
'
,
'
cca
'
,
'
ccb
'
]
QUEUES_LIST
=
[
'
ecgate
'
,
'
cca
'
,
'
ccb
'
]
INSTALL_TARGETS
=
[
'
local
'
,
'
ecgate
'
,
'
cca
'
]
INSTALL_TARGETS
=
[
'
local
'
,
'
ecgate
'
,
'
cca
'
,
'
ccb
'
]
CDS_DATASET
=
'
reanalysis-era5-complete
'
CDS_DATASET
=
'
reanalysis-era5-complete
'
...
@@ -92,7 +96,7 @@ PATH_PYTHONTEST_SRC = os.path.join(PATH_SOURCES, 'pythontest')
...
@@ -92,7 +96,7 @@ PATH_PYTHONTEST_SRC = os.path.join(PATH_SOURCES, 'pythontest')
PATH_INPUT_DIR
=
os
.
path
.
join
(
PATH_RUN_DIR
,
INPUT_DIRNAME_DEFAULT
)
PATH_INPUT_DIR
=
os
.
path
.
join
(
PATH_RUN_DIR
,
INPUT_DIRNAME_DEFAULT
)
PATH_TEST
=
os
.
path
.
join
(
PATH_FLEXEXTRACT_DIR
,
'
test
'
)
PATH_TEST
=
os
.
path
.
join
(
PATH_FLEXEXTRACT_DIR
,
'
test
'
)
if
os
.
getenv
(
'
CONTROL
'
):
if
os
.
getenv
(
'
CONTROL
'
):
# this is only needed if gateway version with job script is used!
# this is only needed if
(
gateway
)
version with job script is used!
# because job is directly submitted from SCRATCH and because the
# because job is directly submitted from SCRATCH and because the
# CONTROL file is stored there, the normal path is not valid.
# CONTROL file is stored there, the normal path is not valid.
PATH_CONTROLFILES
=
'
.
'
PATH_CONTROLFILES
=
'
.
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment