Changeset 2526 for TOOLS/ConsoGENCMIP6/bin/plot_login.py
- Timestamp:
- 05/21/15 11:50:57 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/ConsoGENCMIP6/bin/plot_login.py
r2464 r2526 125 125 parser = ArgumentParser() 126 126 parser.add_argument("-v", "--verbose", action="store_true", 127 help=" Verbose mode")127 help="verbose mode") 128 128 parser.add_argument("-f", "--full", action="store_true", 129 129 help="plot all the logins" + … … 145 145 # ------------------------------ 146 146 args = get_arguments() 147 if args.verbose:148 print(args)149 147 150 148 # ... Turn interactive mode off ... … … 168 166 [OUT["PARAM"], OUT["UTHEO"], OUT["LOGIN"]]) 169 167 170 img_name = "login" 168 img_name = os.path.splitext( 169 os.path.basename(__file__) 170 )[0].replace("plot_", "") 171 171 172 today = os.path.basename(file_param).strip(OUT["PARAM"]) 172 173 173 174 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)) 179 182 180 183 # .. Get project info .. … … 184 187 projet.get_date_init(file_utheo) 185 188 186 # .. Fill in data dict .. 187 # ======================= 188 # ... Initialization ... 189 # ---------------------- 189 # .. Fill in data .. 190 # ================== 190 191 logins = LoginDict() 191 192 logins.fill_data(file_data) … … 241 242 # ------------------------------ 242 243 if args.dods: 244 if args.verbose: 245 print("Publish figure on dods") 243 246 dods_cp(img_in, DIR) 244 247
Note: See TracChangeset
for help on using the changeset viewer.