Changeset 1614 for branches/alma/python/asapmath.py
- Timestamp:
- 08/06/09 15:48:39 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/python/asapmath.py
r1612 r1614 3 3 from asap import print_log 4 4 from asap import selector 5 from taskinit import *5 from asap import asaplog 6 6 7 7 def average_time(*args, **kwargs): … … 68 68 if rcParams['verbose']: 69 69 #print msg 70 casalog.post( msg, 'WARN' ) 70 asaplog.push(msg) 71 print_log('ERROR') 71 72 return 72 73 else: … … 187 188 if rcParams['verbose']: 188 189 #print msg 189 casalog.post( msg, 'WARN' ) 190 asaplog.push(msg) 191 print_log('ERROR') 190 192 return 191 193 else: … … 196 198 if rcParams['verbose']: 197 199 #print msg 198 casalog.post( msg, 'WARN' ) 200 asaplog.push(msg) 201 print_log('ERROR') 199 202 return 200 203 else: … … 206 209 if rcParams['verbose']: 207 210 #print msg 208 casalog.post( msg, 'WARN' ) 211 asaplog.push(msg) 212 print_log('ERROR') 209 213 return 210 214 else: … … 217 221 if rcParams['verbose']: 218 222 #print msg 219 casalog.post( msg, 'WARN' ) 223 asaplog.push(msg) 224 print_log('ERROR') 220 225 return 221 226 else: … … 228 233 if rcParams['verbose']: 229 234 #print msg 230 casalog.post( msg, 'WARN' ) 235 asaplog.push(msg) 236 print_log('ERROR') 231 237 return 232 238 else: … … 275 281 if rcParams['verbose']: 276 282 #print msg 277 casalog.post( msg, 'WARN' ) 283 asaplog.push(msg) 284 print_log('ERROR') 278 285 return 279 286 else: … … 313 320 if rcParams['verbose']: 314 321 #print msg 315 casalog.post( msg, 'WARN' ) 322 asaplog.push(msg) 323 print_log('ERROR') 316 324 return 317 325 else: … … 379 387 """ 380 388 #print "simple_math is deprecated use +=/* instead." 381 casalog.post( "simple_math is deprecated use +=/* instead.", 'WARN' ) 389 asaplog.push( "simple_math is deprecated use +=/* instead." ) 390 print_log('WARN') 382 391 383 392 def merge(*args): … … 409 418 if rcParams['verbose']: 410 419 #print msg 411 casalog.post( msg, 'WARN' ) 420 asaplog.push(msg) 421 print_log('ERROR') 412 422 return 413 423 else:
Note: See TracChangeset
for help on using the changeset viewer.