Ignore:
Timestamp:
05/11/04 12:57:38 (15 years ago)
Author:
selatham
Message:

Incorporates changes by selatham and Ag Stephens. as of 5/11/04.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/naFile1020.py

    r345 r347  
    3838        """ 
    3939        Reads second line/section (if used) of current block of data. 
    40         """ 
     40        """         
    4141        # Now get the dependent variables 
    42         (v, rtlines)=readItemsFromUnknownLines(datalines, self.NV*self.NVPM, float) 
     42        (v, rtlines)=readItemsFromUnknownLines(datalines, self.NV*self.NVPM, float)               
    4343        count=0 
    44         #print "chunk of ind vars",v            testing 
    45         #print rtlines                          testing 
    4644        for n in range(self.NV): 
    4745            self.V[n].append([]) 
    4846            for i in range(self.NVPM):   # Number of steps where independent variable is implied 
    4947                self.V[n][ivar_count].append(v[count]) 
    50                 count=count+1 
     48            count=count+1 
    5149        return rtlines 
    5250 
     
    6260        self.X[0]=newX 
    6361        self._normalizedX="yes" 
    64  
    65     def writeData(self): 
    66         """ 
    67         Writes the data section of the file. 
    68         This method can be called directly by the user. 
    69         """ 
    70         for m in range(len(self.X)): 
    71             # Write Independent variable mark and auxiliary variables 
    72             var_string="%s    " % self.X[m] 
    73             for a in range(self.NAUXV): 
    74                 var_string=var_string+("%s    " % self.A[a][m]) 
    75             self.file.write("%s\n" % var_string.rstrip()) 
    76             # Write dependant variablesf. 
    77             var_string="" 
    78             for n in range(self.NV): 
    79                  var_string=var_string+("%s    " %self.V[n][m]) 
    80             self.file.write("%s    \n" %var_string) 
Note: See TracChangeset for help on using the changeset viewer.