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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DataAssimilation
DART-WRF
Commits
84b989fa
Commit
84b989fa
authored
Feb 3, 2022
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
debug without SLURM
parent
64957eb1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dartwrf/assim_synth_obs.py
+0
-1
0 additions, 1 deletion
dartwrf/assim_synth_obs.py
scheduler.py
+13
-1
13 additions, 1 deletion
scheduler.py
with
13 additions
and
2 deletions
dartwrf/assim_synth_obs.py
+
0
−
1
View file @
84b989fa
...
...
@@ -467,7 +467,6 @@ def set_obserr_assimilate_in_obsseqout(obsseqout, outfile="./obs_seq.out"):
for
obscfg
in
exp
.
observations
:
kind_str
=
obscfg
[
'
kind
'
]
kind
=
osq
.
obs_kind_nrs
[
kind_str
]
print
(
'
kind=
'
,
kind
)
# modify each kind separately, one after each other
mask_kind
=
obsseqout
.
df
.
kind
==
kind
...
...
This diff is collapsed.
Click to expand it.
scheduler.py
+
13
−
1
View file @
84b989fa
...
...
@@ -15,14 +15,26 @@ slurm_scripts_dir = cluster.archivedir+'/slurm-scripts/'
print
(
'
logging to
'
,
log_dir
)
print
(
'
scripts, which are submitted to SLURM:
'
,
slurm_scripts_dir
)
class
Shellslurm
():
def
__init__
(
self
,
*
args
,
**
kwargs
):
pass
def
run
(
self
,
*
args
,
**
kwargs
):
print
(
args
[
0
])
os
.
system
(
args
[
0
])
def
my_Slurm
(
*
args
,
cfg_update
=
dict
(),
**
kwargs
):
"""
Shortcut to slurmpy
'
s class; keep certain default kwargs
and only update some with kwarg `cfg_update`
see https://github.com/brentp/slurmpy
"""
debug
=
True
# run without SLURM, locally on headnode
if
debug
:
return
Shellslurm
(
*
args
)
return
Slurm
(
*
args
,
slurm_kwargs
=
dict
(
cluster
.
slurm_cfg
,
**
cfg_update
),
log_dir
=
log_dir
,
scripts_dir
=
slurm_scripts_dir
,
**
kwargs
)
def
backup_scripts
():
os
.
makedirs
(
cluster
.
archivedir
,
exist_ok
=
True
)
...
...
@@ -245,7 +257,7 @@ if __name__ == "__main__":
prior_valid_time
=
time
id
=
assimilate
(
time
,
prior_init_time
,
prior_valid_time
,
prior_path_exp
,
depends_on
=
id
)
sys
.
exit
()
# 1) Set posterior = prior
id
=
prepare_IC_from_prior
(
prior_path_exp
,
prior_init_time
,
prior_valid_time
,
depends_on
=
id
)
...
...
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