Changeset 2428 for TOOLS


Ignore:
Timestamp:
03/02/15 18:10:22 (9 years ago)
Author:
labetoulle
Message:
  • Process directory size without unit, => in bytes (from du -h)
  • Typos
Location:
TOOLS/ConsoGENCMIP6/bin
Files:
3 edited

Legend:

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

    r2427 r2428  
    4343  """ 
    4444  """ 
     45  if unicode(x).isdecimal(): 
     46    x = x + "o" 
     47 
    4548  (size, unit) = (float(x[:-1]), x[-1]) 
     49 
    4650  return SizeUnit(size, unit) 
    4751 
     
    213217    """ 
    214218    """ 
    215     prefixes = ["K", "M", "G", "T", "P", "H"] 
     219    prefixes = ["o", "K", "M", "G", "T", "P", "H"] 
    216220 
    217221    if not self.size or \ 
  • TOOLS/ConsoGENCMIP6/bin/plot_login.py

    r2427 r2428  
    256256  # ... Save figure ... 
    257257  # ------------------- 
    258   plot_save(img_name, today, "Conso GENCMIP6 par login") 
     258  img_in  = os.path.join(DIR["PLOT"], "{}.pdf".format(img_name)) 
     259  img_out = os.path.join(DIR["SAVEPLOT"], 
     260                         "{}_{}.pdf".format(img_name, today)) 
     261 
     262  plot_save(img_in, img_out, "Conso GENCMIP6 par login") 
    259263 
    260264  # ... Publish figure on dods ... 
    261265  # ------------------------------ 
    262266  if args.dods: 
    263     dods_cp(os.path.join(DIR["PLOT"], img_name)) 
     267    dods_cp(img_in) 
    264268 
    265269  if args.show: 
  • TOOLS/ConsoGENCMIP6/bin/plot_store.py

    r2427 r2428  
    290290  # ... Save figure ... 
    291291  # ------------------- 
    292   plot_save(img_name, today, "Occupation GENCMIP6 sur STORE par login") 
     292  img_in  = os.path.join(DIR["PLOT"], "{}.pdf".format(img_name)) 
     293  img_out = os.path.join(DIR["SAVEPLOT"], 
     294                         "{}_{}.pdf".format(img_name, today)) 
     295 
     296  plot_save(img_in, img_out, "Occupation GENCMIP6 sur STORE par login") 
    293297 
    294298  # ... Publish figure on dods ... 
    295299  # ------------------------------ 
    296300  if args.dods: 
    297     dods_cp(os.path.join(DIR["PLOT"], img_name)) 
     301    dods_cp(img_in) 
    298302 
    299303  if args.show: 
Note: See TracChangeset for help on using the changeset viewer.