Ignore:
Timestamp:
09/02/08 21:07:03 (12 years ago)
Author:
astephen
Message:

Tidied some variable names and boolean types.

File:
1 edited

Legend:

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

    r3321 r3349  
    2929        Reads FFI-specifc header section. 
    3030        """         
    31         self._normalizedX = "no" 
     31        self._normalized_X = False 
    3232        self._readCommonHeader() 
    3333        self.DX = utils.text_parser.readItemsFromLine(self.file.readline(), self.NIV, float) 
     
    6464 
    6565        for i in range(self.NIV - 1): 
    66             X_lines.append(((self.floatFormat + self.spacer) * self.NXDEF[i] + "\n") % tuple(self.X[i + 1][0:self.NXDEF[i]])) 
     66            X_lines.append(((self.float_format + self.spacer) * self.NXDEF[i] + "\n") % tuple(self.X[i + 1][0:self.NXDEF[i]])) 
    6767 
    6868        X_lines.reverse() 
     
    129129        for m in range(len(self.X[0])): 
    130130            # Write Independent variable mark and auxiliary variables 
    131             var_string = (self.floatFormat + self.spacer) % self.X[0][m] 
     131            var_string = (self.float_format + self.spacer) % self.X[0][m] 
    132132            for a in range(self.NAUXV): 
    133                 var_string = var_string + ((self.floatFormat + self.spacer) % self.A[a][m]) 
     133                var_string = var_string + ((self.float_format + self.spacer) % self.A[a][m]) 
    134134            self.file.write("%s\n" % var_string.rstrip()) 
    135135            # Write Variables 
    136136            for n in range(self.NV): 
    137                 outlines = utils.list_manipulator.recursiveListWriter(self.V[n][m], self.NX, spacer = self.spacer, floatFormat = self.floatFormat) 
     137                outlines = utils.list_manipulator.recursiveListWriter(self.V[n][m], self.NX, spacer = self.spacer, float_format = self.float_format) 
    138138                for line in outlines: 
    139139                    self.file.write(line) 
     
    154154                    self.X[i + 1].append(nextx) 
    155155                    count = count + 1 
    156         self._normalizedX = "yes" 
     156        self._normalized_X = True 
Note: See TracChangeset for help on using the changeset viewer.