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
2cc847c5
Commit
2cc847c5
authored
2 months ago
by
Lukas Kugler
Browse files
Options
Downloads
Patches
Plain Diff
cfg needs deep copy
parent
370e3877
Branches
Branches containing commit
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
+5
-6
5 additions, 6 deletions
dartwrf/workflows.py
with
5 additions
and
6 deletions
dartwrf/workflows.py
+
5
−
6
View file @
2cc847c5
...
...
@@ -95,7 +95,7 @@ class WorkFlows(object):
jobname
=
path_to_script
.
split
(
'
/
'
)[
-
1
]
+
'
-
'
+
cfg
.
f_cfg_current
.
split
(
'
/
'
)[
-
1
].
replace
(
'
.py
'
,
''
)
print
(
'
> SLURM job:
'
,
jobname
)
slurm_kwargs
=
cfg
.
slurm_kwargs
slurm_kwargs
=
cfg
.
slurm_kwargs
.
copy
()
for
key
,
value
in
kwargs
.
items
():
slurm_kwargs
[
key
]
=
value
...
...
@@ -180,7 +180,7 @@ class WorkFlows(object):
).
replace
(
'
<wrf_rundir_base>
'
,
cfg
.
dir_wrf_run
).
replace
(
'
<wrf_modules>
'
,
cfg
.
wrf_modules
,
)
id
=
self
.
run_job
(
cmd
,
cfg
,
depends_on
=
[
depends_on
])
id
=
self
.
run_job
(
cmd
,
cfg
,
depends_on
=
[
depends_on
]
,
time
=
"
30
"
)
return
id
def
run_WRF
(
self
,
cfg
,
depends_on
=
None
):
...
...
@@ -235,7 +235,7 @@ class WorkFlows(object):
)
return
id
def
prepare_IC_from_prior
(
self
,
cfg
,
depends_on
=
None
):
def
prepare_IC_from_prior
(
self
,
cfg
:
Config
,
depends_on
=
None
):
"""
Create initial conditions from prior wrfrst files
Args:
...
...
@@ -252,8 +252,7 @@ class WorkFlows(object):
"""
path_to_script
=
self
.
dir_dartwrf_run
+
'
/prep_IC_prior.py
'
cmd
=
'
'
.
join
([
self
.
python
,
path_to_script
,
cfg
.
f_cfg_current
])
id
=
self
.
run_job
(
cmd
,
cfg
,
depends_on
=
[
depends_on
])
id
=
self
.
run_job
(
cmd
,
cfg
,
depends_on
=
[
depends_on
],
time
=
"
10
"
)
return
id
def
update_IC_from_DA
(
self
,
cfg
,
depends_on
=
None
):
...
...
@@ -269,7 +268,7 @@ class WorkFlows(object):
path_to_script
=
self
.
dir_dartwrf_run
+
'
/update_IC.py
'
cmd
=
'
'
.
join
([
self
.
python
,
path_to_script
,
cfg
.
f_cfg_current
])
id
=
self
.
run_job
(
cmd
,
cfg
,
depends_on
=
[
depends_on
])
id
=
self
.
run_job
(
cmd
,
cfg
,
depends_on
=
[
depends_on
]
,
time
=
"
10
"
)
return
id
def
create_satimages
(
self
,
cfg
,
depends_on
=
None
):
...
...
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