Changeset 2112 for trunk/python


Ignore:
Timestamp:
04/06/11 19:08:59 (14 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (fix to handle large data)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: sdplot unit tests

Put in Release Notes: No

Module(s): asapplotter, sdplot

Description: modified print_header for faster header printing.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r2106 r2112  
    14011401        # Now header will be printed on plot and/or logger.
    14021402        # Get header information and format it.
    1403         ssum=self._data.__str__()
     1403        ssum=self._data._list_header()
    14041404        # Print Observation header to the upper-left corner of plot
    14051405        headstr=[ssum[ssum.find('Observer:'):ssum.find('Flux Unit:')]]
     
    14091409            headstr[0]=extrastr+'\n'+headstr[0]
    14101410            self._headtext['extrastr'] = extrastr
    1411         if selstr != '': self._headtext['selstr'] = selstr
     1411        if selstr != '':
     1412            selstr += '\n'
     1413            self._headtext['selstr'] = selstr
    14121414        ssel=(selstr+self._data.get_selection().__str__()+self._selection.__str__() or 'none')
    14131415        headstr.append('***Selections***\n'+ssel)
     
    14271429            asaplog.push(extrastr)
    14281430            asaplog.push(ssum[ssum.find('Beams:'):ssum.find('Selection:')]\
    1429                          + selstr + ssum[ssum.find('Scan Source'):])
     1431                         #+ selstr + ssum[ssum.find('Scan Source'):])
     1432                         + selstr)
    14301433        self._headtext['string'] = headstr
    14311434        del ssel, ssum, headstr
Note: See TracChangeset for help on using the changeset viewer.