Ignore:
Timestamp:
21/12/04 11:56:14 (15 years ago)
Author:
selatham
Message:

Bug fixing and write methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/naFile2010.py

    r359 r360  
    7979        self.A=[] 
    8080        # Create an array size to request using read routines 
    81         self.arraySize=1 
    82         for i in self.NX: 
    83             self.arraySize=self.arraySize*i        
     81        self.arraySize=1 
     82        for i in self.NX: 
     83                self.arraySize=self.arraySize*i 
    8484        for n in range(self.NV): 
    8585            self.V.append([]) 
     
    105105        Reads second line/section (if used) of current block of data. 
    106106        """ 
    107         # Now get the dependent variables           
    108         (v, rtlines)=readItemsFromUnknownLines(datalines, self.arraySize, float) 
     107        # Now get the dependent variables 
    109108        for n in range(self.NV): 
     109            (v, rtlines)=readItemsFromUnknownLines(datalines, self.arraySize, float) 
    110110            self.V[n].append([]) 
    111111            listManipulator.recursiveListPopulator(self.V[n][ivar_count], v, self.NX) 
    112         return rtlines     
     112            datalines=rtlines 
     113        return rtlines 
    113114 
    114115    def writeData(self): 
Note: See TracChangeset for help on using the changeset viewer.