Changeset 983 for trunk/UTIL


Ignore:
Timestamp:
Jun 7, 2013, 6:41:35 PM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON planetoplot_v2. corrected the bug found by Alizee when too many files are opened.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py

    r982 r983  
    628628              if self.nplotz > 1: self.l[count] = self.l[count] + "z="+str(self.z[z])+'_'
    629629              if self.nplott > 1: self.l[count] = self.l[count] + "t="+str(self.t[t])+'_'
     630              # close the file
     631              obj.closefile()
    630632              count = count + 1
    631633        ## make it simple: self.f is simply the data array if self.nrequest=1
     
    12141216            print '..... try instead with ',self.f.variables.keys() ; exit()
    12151217
     1218    # close a file
     1219    # ------------
     1220    def closefile(self):
     1221        print "close", self.file
     1222        self.f.close()
     1223
    12161224    # copy attributes from another existing object
    12171225    # --------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.