Changeset 3493 for nappy


Ignore:
Timestamp:
21/02/08 14:35:49 (11 years ago)
Author:
astephen
Message:

Fixed bug with tolist() method on some axis objects, all are sliced first with [:] now.

File:
1 edited

Legend:

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

    r3490 r3493  
    434434            self.na_dict["ASCAL"].append(1) 
    435435            # Populate the variable list with the array 
    436             self.na_dict["A"].append(var.tolist()) 
     436            self.na_dict["A"].append(var[:].tolist()) 
    437437 
    438438        self.na_dict["NAUXV"] = len(self.na_dict["A"]) 
     
    460460                self.na_dict["DX"].append(0) 
    461461                self.na_dict["NXDEF"].append(length) 
    462                 self.na_dict["X"].append(axis.tolist()) 
     462                self.na_dict["X"].append(axis[:].tolist()) 
    463463                break 
    464464        else: # If did not break out of the loop 
Note: See TracChangeset for help on using the changeset viewer.