Ignore:
Timestamp:
14/06/07 12:13:02 (14 years ago)
Author:
domlowe
Message:

fixing bug with single time selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/API/genSubset.py

    r2569 r2585  
    174174 
    175175def getTheData(feature, selection, times,timeName): 
    176      
    177176    #SOME OF THIS SHOULD PROBABLY BE IN THE DATA IO LAYER 
     177    #add time range back into the selection  
     178    if len(times)==1: 
     179        selection[timeName]=times[0] 
     180    else: 
     181         selection[timeName]=(times[0], times[len(times)-1]) 
     182 
    178183    domain = feature.domain 
    179184    value=feature.value 
Note: See TracChangeset for help on using the changeset viewer.