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_login.py

    r2464 r2526  
    125125  parser = ArgumentParser() 
    126126  parser.add_argument("-v", "--verbose", action="store_true", 
    127                       help="Verbose mode") 
     127                      help="verbose mode") 
    128128  parser.add_argument("-f", "--full", action="store_true", 
    129129                      help="plot all the logins" + 
     
    145145  # ------------------------------ 
    146146  args = get_arguments() 
    147   if args.verbose: 
    148     print(args) 
    149147 
    150148  # ... Turn interactive mode off ... 
     
    168166                      [OUT["PARAM"], OUT["UTHEO"], OUT["LOGIN"]]) 
    169167 
    170   img_name = "login" 
     168  img_name = os.path.splitext( 
     169               os.path.basename(__file__) 
     170             )[0].replace("plot_", "") 
     171 
    171172  today = os.path.basename(file_param).strip(OUT["PARAM"]) 
    172173 
    173174  if args.verbose: 
    174     print(file_param) 
    175     print(file_utheo) 
    176     print(file_data) 
    177     print(img_name) 
    178     print(today) 
     175    fmt_str = "{:10s} : {}" 
     176    print(fmt_str.format("args", args)) 
     177    print(fmt_str.format("today", today)) 
     178    print(fmt_str.format("file_param", file_param)) 
     179    print(fmt_str.format("file_utheo", file_utheo)) 
     180    print(fmt_str.format("file_data", file_data)) 
     181    print(fmt_str.format("img_name", img_name)) 
    179182 
    180183  # .. Get project info .. 
     
    184187  projet.get_date_init(file_utheo) 
    185188 
    186   # .. Fill in data dict .. 
    187   # ======================= 
    188   # ... Initialization ... 
    189   # ---------------------- 
     189  # .. Fill in data .. 
     190  # ================== 
    190191  logins = LoginDict() 
    191192  logins.fill_data(file_data) 
     
    241242  # ------------------------------ 
    242243  if args.dods: 
     244    if args.verbose: 
     245      print("Publish figure on dods") 
    243246    dods_cp(img_in, DIR) 
    244247 
Note: See TracChangeset for help on using the changeset viewer.