- Timestamp:
- 11/17/05 14:33:14 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r710 r715 226 226 return False 227 227 228 from asap._asap import LogSink as _asaplog 229 # use null sink if verbose==False 230 #asaplog=_asaplog(rcParams['verbose']) 228 229 # workaround for ipython, which redirects this if banner=0 in ipythonrc 230 sys.stdout = sys.__stdout__ 231 sys.stderr = sys.__stderr__ 232 233 # Logging 234 from asap._asap import Log as _asaplog 235 global asaplog 231 236 asaplog=_asaplog() 232 global asaplog 237 if rcParams['verbose']: 238 asaplog.enable() 239 else: 240 asaplog.disable() 241 242 def print_log(): 243 log = asaplog.pop() 244 if len(log) and rcParams['verbose']: print log 245 return 246 233 247 from asapfitter import * 234 248 from asapreader import reader 235 249 236 250 from asapmath import * 237 from asap._asap import _math_setlog238 _math_setlog(asaplog)239 240 251 from scantable import * 241 252 from asaplinefind import * … … 248 259 if rcParams['useplotter']: 249 260 from asapplotter import * 250 if rcParams['verbose']:251 print "Initialising GUI asapplotter with the name 'plotter' ..."252 261 gui = os.environ.has_key('DISPLAY') and rcParams['plotter.gui'] 253 262 plotter = asapplotter(gui) 263 del gui 254 264 255 265 __date__ = '$Date$'.split()[1] … … 264 274 print filter(lambda x: not x.startswith('_'), sts) 265 275 return 266 else: 267 pass 268 269 def commands(): 270 x = """ 276 277 def commands(): 278 x = """ 271 279 [The scan container] 272 280 scantable - a container for integrations/scans … … 403 411 ASAP> help average_time 404 412 405 """406 print x407 return413 """ 414 print x 415 return 408 416 409 417 def welcome():
Note:
See TracChangeset
for help on using the changeset viewer.