Ignore:
Timestamp:
25/03/09 08:58:07 (11 years ago)
Author:
spascoe
Message:

Merging changes in the nappy package from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/branches/nappy-eggable/nappy/nc_interface/na_to_cdms.py

    r4693 r5138  
    224224                self.cdms_variables.append(self._convertNAToCdmsVariable(var_number)) 
    225225        else: 
    226             if type(self.variables[0]) == type(1): # They are integers = indices 
     226            if type(self.variables[0]) == type(1) or re.match("\d+", str(self.variables[0])): # They are integers = indices 
    227227                for var_number in self.variables: 
    228                     self.cdms_variables.append(self._convertNAToCdmsVariable(var_number))    
     228                    vn = int(var_number) 
     229                    self.cdms_variables.append(self._convertNAToCdmsVariable(vn))    
    229230            elif type(self.variables[0]) == type("string"):  # Vars are strings 
    230231                for var_name in self.variables: 
Note: See TracChangeset for help on using the changeset viewer.