Skip to content

Commit

Permalink
Search for .pdfs, not .pngs
Browse files Browse the repository at this point in the history
vector -> .png conversion now handled by framework after the POD has
run, so searching for .png files as a check that previous parts of the
calculation were succefful will fail.

#20
  • Loading branch information
tsj5 committed Sep 13, 2020
1 parent 91a3a40 commit d945d80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diagnostics/AMOC_3D_Structure/AMOC_3D_Structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
single_ncl_test(model)

#============================================================
(status, num_png) = commands.getstatusoutput("find "+os.environ["WKDIR"]+" -depth -name 'MFWT_lats_y_plot.png' | wc -l")
(status, num_png) = commands.getstatusoutput("find "+os.environ["WKDIR"]+" -depth -name 'MFWT_lats_y_plot.pdf' | wc -l")
num_model=str(len(os.environ["MODELS"].split()))
if num_png==num_model:
script=os.environ["SRCDIR"]+"sum_Q_lat0_z_plot.ncl"
Expand Down
2 changes: 1 addition & 1 deletion diagnostics/AMOC_3D_Structure/obs_AMOC_3D_Structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
execute_ncl_calculate(script)

#============================================================
(status, num_png) = commands.getstatusoutput("find "+os.environ["WKDIR"]+" -depth -name 'MFWT_lats_y_plot.png' | wc -l")
(status, num_png) = commands.getstatusoutput("find "+os.environ["WKDIR"]+" -depth -name 'MFWT_lats_y_plot.pdf' | wc -l")
num_model=str(len(os.environ["MODELS"].split()))
if num_png==num_model:
script=os.environ["SRCDIR"]+"ref_MFWT_vs_AMOCr_lat0_dots_plot.ncl"
Expand Down

0 comments on commit d945d80

Please sign in to comment.