Changeset 3475


Ignore:
Timestamp:
20/02/08 16:12:45 (12 years ago)
Author:
astephen
Message:

Fixed writing bug in na_file_2110.py that wasn't writing NX values in aux var lines in records.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/nappy/na_file/na_file_2110.py

    r3461 r3475  
    118118            # Write unbounded independent variable mark and auxiliary variables 
    119119            var_string = self.format % self.X[m][0] 
     120            var_string = var_string + (self.format % self.NX[m]) 
    120121 
    121             for a in range(self.NAUXV): 
     122            for a in range(self.NAUXV - 1): 
    122123                var_string = var_string + (self.format % self.A[a][m]) 
    123124            self.file.write("%s\n" % var_string.rstrip(" ,")) 
     
    125126            # Write second independant variable and dependant variables 
    126127            for p in range(self.NX[m]): 
     128                print self.NX, "....", self.X,">>>", p 
    127129                var_string = self.format % self.X[m][1][p] 
    128130 
Note: See TracChangeset for help on using the changeset viewer.