Changeset 1320 for branches/Release2.1.2/python
- Timestamp:
- 03/02/07 11:02:27 (18 years ago)
- Location:
- branches/Release2.1.2/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release2.1.2/python/__init__.py
r1309 r1320 22 22 if os.path.exists(os.environ["ASAPDATA"]): 23 23 asapdata = os.environ["ASAPDATA"] 24 os.environ["AIPSPATH"] = "%s %s somwhere" % ( asapdata, plf) 24 if not os.environ.has_key("AIPSPATH"): 25 os.environ["AIPSPATH"] = "%s %s somwhere" % ( asapdata, plf) 25 26 # set up user space 26 27 userdir = os.environ["HOME"]+"/.asap" … … 254 255 255 256 def _n_bools(n, val): 256 return [ val for i in xrange(n) ] 257 return [ val for i in xrange(n) ] 257 258 258 259 def _is_sequence_or_number(param, ptype=int): … … 348 349 if rcParams['useplotter']: 349 350 try: 350 351 352 353 354 355 351 from asapplotter import asapplotter 352 gui = os.environ.has_key('DISPLAY') and rcParams['plotter.gui'] 353 if gui: 354 import pylab as xyplotter 355 plotter = asapplotter(gui) 356 del gui 356 357 except ImportError: 357 358 print "Matplotlib not installed. No plotting available" 358 359 359 360 __date__ = '$Date$'.split()[1] 360 __version__ = '2.1. 3'361 __version__ = '2.1.2' 361 362 362 363 def is_ipython(): -
branches/Release2.1.2/python/asapplotter.py
r1295 r1320 1 1 from asap import rcParams, print_log, selector 2 2 import matplotlib.axes 3 import sre3 import re 4 4 5 5 class asapplotter:
Note:
See TracChangeset
for help on using the changeset viewer.