Ignore:
Timestamp:
17/03/08 14:59:30 (12 years ago)
Author:
spascoe
Message:

This branch contains CSML converted to use cdat_lite-5.

  • convertcdms was run on the source
  • the MA.set_print_limit call was changed to the numpy equivilent
  • The tests were changed to account for the existence of numpy scalar types.

All tests, except the two known to fail, pass on i686 ubuntu.

Location:
TI02-CSML/branches/csml-cdms2
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • TI02-CSML/branches/csml-cdms2/API/csmlutils.py

    r3267 r3627  
     1# Adapted for numpy/ma/cdms2 by convertcdms.py 
    12'''csml utils contains useful utility functions that don't belong anywhere else''' 
    23import csml 
     
    131132                rtMessage="%s axis selected value '%s' nudged to nearest value in real axis '%s' ;" % (axisType, value, newValue)        
    132133        #        print rtMessag 
    133         if type(newValue) is float: 
     134        if isinstance(newValue, float): 
    134135            if len(str(int(newValue))) ==14: # it's a time 
    135136                newValue=csml.csmllibs.csmltime.convertValueToCSML(newValue)    
Note: See TracChangeset for help on using the changeset viewer.