Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DART-WRF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
DataAssimilation
DART-WRF
Commits
23c8433b
Commit
23c8433b
authored
2 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
pythonpath
parent
7d2b23d4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dartwrf/workflows.py
+11
-1
11 additions, 1 deletion
dartwrf/workflows.py
with
11 additions
and
1 deletion
dartwrf/workflows.py
+
11
−
1
View file @
23c8433b
...
...
@@ -117,7 +117,8 @@ class WorkFlows(object):
_copy_dartwrf_to_archive
()
# includes config files
# we set the path from where python should import dartwrf modules
self
.
cluster
.
python
=
'
export PYTHONPATH=
'
+
self
.
cluster
.
scripts_rundir
+
'
;
'
+
self
.
cluster
.
python
# pythonpath is the folder above the dartwrf folder
self
.
cluster
.
python
=
'
export PYTHONPATH=
'
+
self
.
cluster
.
scripts_rundir
+
'
/../;
'
+
self
.
cluster
.
python
# Set paths and backup scripts
self
.
cluster
.
log_dir
=
self
.
cluster
.
archivedir
+
'
/logs/
'
...
...
@@ -333,6 +334,15 @@ class WorkFlows(object):
depends_on
=
[
depends_on
])
return
id
def
evaluate_plus0
(
self
,
list_assim_times
,
depends_on
=
None
):
list_of_tuples
=
[(
init
,
init
)
for
init
in
list_assim_times
]
arg
=
'
'
.
join
([
ttuple
[
0
].
strftime
(
'
%Y-%m-%d_%H:%M,
'
)
+
ttuple
[
1
].
strftime
(
'
%Y-%m-%d_%H:%M
'
)
for
ttuple
in
list_of_tuples
])
cmd
=
self
.
cluster
.
python
+
'
'
+
self
.
cluster
.
scripts_rundir
+
'
/evaluate_obs_space.py
'
+
arg
id
=
self
.
cluster
.
run_job
(
cmd
,
'
eval+0
'
+
self
.
exp
.
expname
,
cfg_update
=
{
"
ntasks
"
:
"
12
"
,
"
mem
"
:
"
50G
"
,
"
ntasks-per-node
"
:
"
12
"
,
"
ntasks-per-core
"
:
"
2
"
,
"
time
"
:
"
15
"
,
"
mail-type
"
:
"
FAIL
"
},
depends_on
=
[
depends_on
])
return
id
def
verify_sat
(
self
,
depends_on
=
None
):
cmd
=
self
.
cluster
.
python_verif
+
'
/jetfs/home/lkugler/osse_analysis/plot_from_raw/analyze_fc.py
'
+
self
.
exp
.
expname
+
'
has_node sat verif1d FSS BS
'
...
...
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