Changeset 1543:6481dba93e2e in orange-bioinformatics for obiKEGG2/pathway.py


Ignore:
Timestamp:
02/03/12 12:19:01 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

get_entries_by_type returns a list, renamed cache filename.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • obiKEGG2/pathway.py

    r1532 r1543  
    1818 
    1919from Orange.misc import deprecated_attribute 
    20  
    2120     
    2221def cached_method(func, cache_name="_cached_method_cache", store=None): 
     
    5655        caching.touch_dir(self.local_cache) 
    5756        return caching.Sqlite3Store(os.path.join(self.local_cache, 
    58                                                  "last-modified.sqlite3")) 
     57                                                 "last_modified.sqlite3")) 
    5958         
    6059    def _get_kgml(self): 
     
    221220     
    222221    def _get_entries_by_type(self, type): 
    223         return reduce(set.union, [entry.name.split() for entry in self.entries() if entry.type == type], set()) 
     222        return sorted(reduce(set.union, [entry.name.split() for entry in self.entries() if entry.type == type], set())) 
    224223     
    225224    @cached_method 
Note: See TracChangeset for help on using the changeset viewer.