Ignore:
Timestamp:
29/06/07 12:27:38 (13 years ago)
Author:
domlowe
Message:

used dictionary to store fileextract info that was getting read from disk each time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/csmllibs/csmlcrs.py

    r2584 r2665  
    133133            #at the moment a simple test on number of dimensions works, but need to make this more generic. 
    134134            for psystem in self.pseudosystems: 
    135                 if len(self.pseudosystems[psystem].axes) == len (labellist): 
    136                     return self.pseudosystems[psystem] 
     135                try: 
     136                    if len(self.pseudosystems[psystem].axes) == len (labellist): 
     137                        return self.pseudosystems[psystem] 
     138                except: 
     139                    pass 
    137140            else: 
    138141                return self.systems['ndg:crs:unknown'] 
Note: See TracChangeset for help on using the changeset viewer.