Changeset 2449


Ignore:
Timestamp:
03/26/15 13:23:48 (9 years ago)
Author:
labetoulle
Message:

keep only one jobs plot per week

Location:
TOOLS/ConsoGENCMIP6/bin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/ConsoGENCMIP6/bin/gencmip6.py

    r2437 r2449  
    258258if __name__ == '__main__': 
    259259  pass 
    260  
  • TOOLS/ConsoGENCMIP6/bin/plot_bilan_jobs.py

    r2448 r2449  
    258258      fontsize="xx-small", 
    259259      bbox=dict(boxstyle="round", fc="w", ec="0.5", color="gray",), 
     260      # xy=(np.nanargmax(consos)+1.2, ymax), 
    260261      xy=(np.nanargmax(consos)+1.2, ymax*0.9), 
    261262      textcoords="axes fraction", 
  • TOOLS/ConsoGENCMIP6/bin/plot_jobs.py

    r2448 r2449  
    199199         color="firebrick", antialiased=True, 
    200200         label="jobs pending") 
     201  # ax.step(xcoord, run_jobs, where="mid", linewidth=1, color="black", label="jobs running") 
     202  # ax.step(xcoord, pen_jobs+run_jobs, where="mid", linewidth=1, color="black", label="jobs running") 
    201203 
    202204 
     
    314316  img_name = "jobs" 
    315317  today = os.path.basename(file_param).strip(OUT["PARAM"]) 
     318  weeknum = string_to_date(today, fmt="%Y%m%d").isocalendar()[1] 
    316319 
    317320  if args.verbose: 
     
    420423  img_in  = os.path.join(DIR["PLOT"], "{}.pdf".format(img_name)) 
    421424  img_out = os.path.join(DIR["SAVEPLOT"], 
    422                          "{}_{}.pdf".format(img_name, today)) 
     425                         "{}_w{:02d}.pdf".format(img_name, weeknum)) 
    423426 
    424427  plot_save(img_in, img_out, title) 
     
    433436 
    434437  exit(0) 
    435  
Note: See TracChangeset for help on using the changeset viewer.