- Timestamp:
- 08/23/06 13:15:32 (18 years ago)
- Location:
- trunk/python
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r1171 r1175 349 349 from asapplotter import asapplotter 350 350 gui = os.environ.has_key('DISPLAY') and rcParams['plotter.gui'] 351 if gui: 352 import pylab as xyplotter 351 353 plotter = asapplotter(gui) 352 354 del gui … … 528 530 axhline,axvline - draw horizontal/vertical lines 529 531 axhspan,axvspan - draw horizontal/vertical regions 530 532 533 xyplotter - matplotlib/pylab plotting functions 534 531 535 [Reading files] 532 536 reader - access rpfits/sdfits files -
trunk/python/asapplotter.py
r1174 r1175 580 580 # convert this into lengths 581 581 n0,nstack0 = self._get_selected_n(scan) 582 n = len(n0)583 582 if isinstance(n0, int): n = n0 584 nstack = len(nstack0)583 else: n = len(n0) 585 584 if isinstance(nstack0, int): nstack = nstack0 585 else: nstack = len(nstack0) 586 586 maxpanel, maxstack = 16,8 587 587 if n > maxpanel or nstack > maxstack: … … 731 731 'i': "IF"+str(scan.getif(row)), 732 732 'p': poleval, 733 't': s can._gettime(row) }733 't': str(scan.get_time(row)) } 734 734 return userlabel or d[mode] 735 735 -
trunk/python/scantable.py
r1157 r1175 411 411 print "--------------------------------------------------" 412 412 print out 413 retval = {'axesnames': axesnames, 'axes': axes, 'data': outvec} 414 return retval 413 # disabled because the vector seems more useful 414 #retval = {'axesnames': axesnames, 'axes': axes, 'data': outvec} 415 return outvec 415 416 416 417 def _get_column(self, callback, row=-1): … … 433 434 none 434 435 """ 435 return self._get_column(self._gettime, row) 436 from time import strptime 437 from datetime import datetime 438 times = self._get_column(self._gettime, row) 439 format = "%Y/%m/%d/%H:%M:%S" 440 if isinstance(times, list): 441 return [datetime(*strptime(i, format)[:6]) for i in times] 442 else: 443 return datetime(*strptime(times, format)[:6]) 436 444 437 445 def get_sourcename(self, row=-1):
Note:
See TracChangeset
for help on using the changeset viewer.