Ignore:
Timestamp:
26/02/07 14:55:05 (13 years ago)
Author:
domlowe
Message:

fixes to do with arrays/lists/nearestneighbours

File:
1 edited

Legend:

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

    r2206 r2208  
    1313        #handle single values 
    1414        if type(kwargs[key]) is not tuple: 
    15             nearestNeighbour=csml.API.csmlutils.nudgeSingleValuesToAxisValues(kwargs[key],domain[gridnames[key]]) 
     15            if type(domain[gridnames[key]]) is not list: 
     16                axeslist=domain[gridnames[key]].tolist() 
     17            else: 
     18                axeslist = domain[gridnames[key]] 
     19            nearestNeighbour=csml.API.csmlutils.nudgeSingleValuesToAxisValues(kwargs[key],axeslist) 
    1620            if nearestNeighbour is not None: 
    1721                kwargs[key]=nearestNeighbour     
Note: See TracChangeset for help on using the changeset viewer.