Ignore:
Timestamp:
03/02/10 08:43:09 (9 years ago)
Author:
pnorton
Message:

Added the ability to remove line selections. Also introduced some css + jquery to the buildplot page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qesdi/graphplotter/trunk/graphplotter/controllers/buildplot.py

    r6464 r6472  
    4545        log.debug("dfConfig = %s" % (dfConfig,)) 
    4646         
     47        allVars = reader.getVariableNames() 
    4748         
    4849        # if there is a dataVariables section, only include the variables 
    4950        # in this section, all others are to be ignored. 
    5051        if 'dataVariables' in dfConfig: 
    51             allVars = reader.getVariableNames() 
    5252             
    5353            c.variables = [('','')] 
     
    7272        c.selectedVariable = params.get('variable', '') 
    7373         
    74         if c.selectedVariable != '': 
     74        if c.selectedVariable != '' and c.selectedVariable in allVars: 
    7575            log.debug("c.selectedVariable = %s" % (c.selectedVariable,)) 
    7676            self._addVariableSelection(params, reader) 
     
    109109            vals = reader.getAxisValues(c.selectedVariable, ax) 
    110110                         
    111             c.axisSelect[ax] = [''] + [str(x) for x in vals] 
     111            #c.axisSelect[ax] = [''] + [str(x) for x in vals] 
     112            c.axisSelect[ax] = [str(x) for x in vals] 
    112113             
    113114            units = reader.getAxisUnits(c.selectedVariable, ax) 
Note: See TracChangeset for help on using the changeset viewer.