Changeset 8302


Ignore:
Timestamp:
09/05/12 10:49:02 (7 years ago)
Author:
astephen
Message:

Fixed ambiguous test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/nappy/nc_interface/cdms_to_na.py

    r7966 r8302  
    164164        ordered_vars = [None] * var_limit 
    165165        unordered_vars = [] 
     166 
    166167        for var in variables: 
    167168            var_metadata = var.attributes 
     
    176177        # Clear any None values in ordered_vars and place in final vars list 
    177178        for var in ordered_vars + unordered_vars: 
    178             if var is not None: vars.append(var) 
    179              
     179            # Test for Real var types 
     180            if type(var) != type(None):  
     181                vars.append(var) 
     182              
    180183        return vars 
    181184 
Note: See TracChangeset for help on using the changeset viewer.