Changeset 1712:bcd52ead3d93 in orange-bioinformatics for _bioinformatics/obiKEGG2/__init__.py


Ignore:
Timestamp:
08/21/12 15:06:38 (20 months ago)
Author:
markotoplak
Branch:
default
Message:

Classes for storing gene set data moved to Orange.bio.geneset. obiGeneSets adapted to make new pickled classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiKEGG2/__init__.py

    r1636 r1712  
    4747from .. import obiProb 
    4848from Orange.utils import deprecated_keywords, deprecated_attribute 
     49 
     50class OrganismNotFoundError(Exception): pass 
    4951 
    5052class Organism(object): 
     
    193195            return genome[name].entry_key 
    194196        except KeyError: 
    195             raise ValueError("Organism with name='%s' not found in KEGG." % name) 
     197            raise OrganismNotFoundError(name) 
    196198         
    197199    @classmethod 
Note: See TracChangeset for help on using the changeset viewer.