Changeset 2464
- Timestamp:
- 04/02/15 13:21:49 (10 years ago)
- Location:
- TOOLS/ConsoGENCMIP6/bin
- Files:
-
- 1 added
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/ConsoGENCMIP6/bin
- Property svn:ignore
-
old new 1 1 *.pyc 2 config.ini
-
- Property svn:ignore
-
TOOLS/ConsoGENCMIP6/bin/libconso.py
r2463 r2464 52 52 OUT = {} 53 53 54 config = cp.ConfigParser( )54 config = cp.ConfigParser(allow_no_value=True) 55 55 config.optionxform = str 56 56 config.read(filename) … … 71 71 section = "directories" 72 72 for option in config.options(section): 73 res = config.get(section, option) 74 if res != "None": 75 DIR[option] = res 76 else: 77 DIR[option] = None 73 DIR[option] = config.get(section, option) 78 74 79 75 if DIR[option] and not os.path.isdir(DIR[option]): … … 221 217 222 218 #--------------------------------------- 223 def __init__(self ):224 self.project = ""219 def __init__(self, project_name): 220 self.project = project_name 225 221 self.date_init = "" 226 222 self.deadline = "" … … 231 227 import json 232 228 dico = json.load(open(filein, "r")) 233 self.project = dico["name"]234 229 self.deadline = string_to_date(dico["deadline"]) + \ 235 230 dt.timedelta(days=-1) -
TOOLS/ConsoGENCMIP6/bin/plot_bilan.py
r2460 r2464 393 393 # .. Get project info .. 394 394 # ====================== 395 projet = Project( )395 projet = Project(project_name) 396 396 projet.fill_data(file_param) 397 397 projet.get_date_init(file_utheo) -
TOOLS/ConsoGENCMIP6/bin/plot_bilan_jobs.py
r2460 r2464 424 424 # .. Get project info .. 425 425 # ====================== 426 projet = Project( )426 projet = Project(project_name) 427 427 projet.fill_data(file_param) 428 428 projet.get_date_init(file_utheo) -
TOOLS/ConsoGENCMIP6/bin/plot_jobs.py
r2460 r2464 26 26 """ 27 27 """ 28 # delta = date_end - date_beg29 # delta = delta + dt.timedelta(days=1)30 28 delta = date_end - date_beg + dt.timedelta(days=1) 31 29 … … 343 341 # .. Get project info .. 344 342 # ====================== 345 projet = Project( )343 projet = Project(project_name) 346 344 projet.fill_data(file_param) 347 345 projet.get_date_init(file_utheo) … … 422 420 plot_data(ax, xcoord, dates, run_jobs, pen_jobs, run_std, pen_std) 423 421 424 # #... Tweak figure ...425 # #--------------------422 # ... Tweak figure ... 423 # -------------------- 426 424 title = "Suivi des jobs {}\n({:%d/%m/%Y} - {:%d/%m/%Y})".format( 427 425 projet.project.upper(), -
TOOLS/ConsoGENCMIP6/bin/plot_login.py
r2462 r2464 180 180 # .. Get project info .. 181 181 # ====================== 182 projet = Project( )182 projet = Project(project_name) 183 183 projet.fill_data(file_param) 184 184 projet.get_date_init(file_utheo) -
TOOLS/ConsoGENCMIP6/bin/plot_store.py
r2462 r2464 232 232 # .. Get project info .. 233 233 # ====================== 234 projet = Project( )234 projet = Project(project_name) 235 235 projet.fill_data(file_param) 236 236 projet.get_date_init(file_utheo)
Note: See TracChangeset
for help on using the changeset viewer.