Ignore:
Timestamp:
08/23/06 13:15:32 (18 years ago)
Author:
mar637
Message:

various changes to support the pylab plotter 'xyplotter'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r1157 r1175  
    411411            print "--------------------------------------------------"
    412412            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
    415416
    416417    def _get_column(self, callback, row=-1):
     
    433434            none
    434435        """
    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])
    436444
    437445    def get_sourcename(self, row=-1):
Note: See TracChangeset for help on using the changeset viewer.