Skip to content
Snippets Groups Projects
Commit e5360c8f authored by lkugler's avatar lkugler
Browse files

archive obs_seq.out also if not generated

parent 45320342
No related branches found
No related tags found
No related merge requests found
...@@ -363,8 +363,12 @@ def get_obsseq_out(time): ...@@ -363,8 +363,12 @@ def get_obsseq_out(time):
if exp.use_existing_obsseq != False: if exp.use_existing_obsseq != False:
# use an existing obs_seq.out file # use an existing obs_seq.out file
f_obsseq = time.strftime(exp.use_existing_obsseq) f_obsseq = time.strftime(exp.use_existing_obsseq)
copy(f_obsseq, cluster.dart_rundir+'/obs_seq.out') copy(f_obsseq, cluster.dart_rundir+'/obs_seq.out') # copy to run_DART folder
print(f_obsseq, 'copied to', cluster.dart_rundir+'/obs_seq.out') print(f_obsseq, 'copied to', cluster.dart_rundir+'/obs_seq.out')
# copy to sim_archive
copy(f_obsseq, time.strftime(cluster.archivedir+'/obs_seq_out/%Y-%m-%d_%H:%M_obs_seq.out'))
oso = obsseq.ObsSeq(cluster.dart_rundir + "/obs_seq.out") # read the obs_seq.out file oso = obsseq.ObsSeq(cluster.dart_rundir + "/obs_seq.out") # read the obs_seq.out file
else: else:
# do NOT use an existing obs_seq.out file # do NOT use an existing obs_seq.out file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment