Changeset 6352


Ignore:
Timestamp:
Feb 17, 2009, 9:27:30 AM (16 years ago)
Author:
rwilson
Message:

Fixed problem with infinite recursion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/tools/plotcsv/plotcsv.py

    r6351 r6352  
    278278
    279279    # get appropriate columns from data[]
    280     x_data = map(lambda x: x[x_index], data)
     280    x_data = map(lambda x: float(x[x_index]), data)
    281281    if x_hdr == 'time':
    282282        x_data = map(lambda x: float(x)/3600., x_data)
    283     y_data = map(lambda x: x[y_index], data)
     283    y_data = map(lambda x: float(x[y_index]), data)
    284284
    285285    return (x_data, y_data)
     
    451451        if self.XColHdr is None:
    452452            self.XColHdr = []
    453         # -1 here means 'no selection'
    454453        self.XColHdrSelection = self.cfg['XColHdrSelection']
    455454        self.YColHdr = self.cfg['YColHdr']
    456455        if self.YColHdr is None:
    457456            self.YColHdr = []
    458         # -1 here means 'no selection'
    459457        self.YColHdrSelection = self.cfg['YColHdrSelection']
    460458        self.file_dir = self.cfg['file_dir']
     
    471469        self.updateHdrChoices()
    472470
    473         if self.XColHdrSelection:
     471        if self.XColHdrSelection >= 0:
    474472            self.cbXColHdr.SetSelection(self.XColHdrSelection)
    475         if self.YColHdrSelection:
     473        if self.YColHdrSelection >= 0:
    476474            self.cbYColHdr.SetSelection(self.YColHdrSelection)
    477475
Note: See TracChangeset for help on using the changeset viewer.