Ignore:
Timestamp:
20/02/08 14:01:06 (12 years ago)
Author:
astephen
Message:

Some temporary scripts to test functionality before formalising into unit tests.

File:
1 edited

Legend:

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

    r3442 r3469  
    6969        self.var_ids = None 
    7070        self.globals = global_attributes         
    71         self.requested_ffi = ffi 
     71        self.requested_ffi = requested_ffi 
    7272        self.rank_zero_vars = [] 
    7373        self.rank_zero_var_ids = [] 
     
    182182                # I think it is an auxiliary variable 
    183183                aux_vars_for_na.append(var)  
    184                 # Also put it in unused var bin because auxiliary vars might be useful later on in there own right 
    185                 print "NOTE: Auxiliary variables are recorded in file but also placed in unused category just in case they should be re-used in other files." 
    186                 self.unused_vars.append(var) 
    187184 
    188185            else: 
     
    278275                ffi = 1001 
    279276 
    280         if self.requestd_ffi and ffi != self.requested_ffi: 
     277        if self.requested_ffi and ffi != self.requested_ffi: 
    281278            raise Exception("Cannot write this data to FFI '" + str(self.requested_ffi) + "', can only write to: " + str(ffi) + ".") 
    282279        return ffi 
     
    312309                self.ax0 = var.getAxis(0) 
    313310                self.na_dict["X"] = [self.ax0[:].tolist()] 
     311                print self.na_dict["X"] 
    314312                self.na_dict["XNAME"] = [nappy.cdms_utils.var_utils.getBestName(self.ax0)] 
    315313                if len(self.ax0) == 1: 
Note: See TracChangeset for help on using the changeset viewer.