Ignore:
Timestamp:
05/21/15 11:50:57 (9 years ago)
Author:
labetoulle
Message:
  • plot_bilan_jobs.py : add two month delay curve
  • homogenise all plots
File:
1 edited

Legend:

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

    r2524 r2526  
    163163    self.real_use = real_use 
    164164    self.theo_use = theo_use 
     165    self.poly_theo = np.poly1d([]) 
     166    self.poly_delay = np.poly1d([]) 
    165167    self.run_mean = run_mean 
    166168    self.pen_mean = pen_mean 
     
    364366  # ------------------------------ 
    365367  args = get_arguments() 
    366   if args.verbose: 
    367     print(args) 
    368368 
    369369  # ... Turn interactive mode off ... 
     
    387387                      [OUT["PARAM"], OUT["UTHEO"], OUT["BILAN"]]) 
    388388 
    389   img_name = "bilan" 
     389  img_name = os.path.splitext( 
     390               os.path.basename(__file__) 
     391             )[0].replace("plot_", "") 
     392 
    390393  today = os.path.basename(file_param).strip(OUT["PARAM"]) 
    391394 
    392395  if args.verbose: 
    393     print(file_param) 
    394     print(file_utheo) 
    395     print(file_data) 
    396     print(img_name) 
    397     print(today) 
     396    fmt_str = "{:10s} : {}" 
     397    print(fmt_str.format("args", args)) 
     398    print(fmt_str.format("today", today)) 
     399    print(fmt_str.format("file_param", file_param)) 
     400    print(fmt_str.format("file_utheo", file_utheo)) 
     401    print(fmt_str.format("file_data", file_data)) 
     402    print(fmt_str.format("img_name", img_name)) 
    398403 
    399404  # .. Get project info .. 
     
    506511  # ------------------------------ 
    507512  if args.dods: 
     513    if args.verbose: 
     514      print("Publish figure on dods") 
    508515    dods_cp(img_in, DIR) 
    509516 
     
    512519 
    513520  exit(0) 
     521 
Note: See TracChangeset for help on using the changeset viewer.