the difference between class and object variables...
This commit is contained in:
parent
09ab4249ba
commit
a6fb27f8a7
@ -26,12 +26,10 @@ class ChemSpider(Source):
|
|||||||
structure = 'Chemical-Structure.%s.html'
|
structure = 'Chemical-Structure.%s.html'
|
||||||
extendedinfo = 'MassSpecAPI.asmx/GetExtendedCompoundInfo?csid=%s&token='
|
extendedinfo = 'MassSpecAPI.asmx/GetExtendedCompoundInfo?csid=%s&token='
|
||||||
|
|
||||||
cfg = {}
|
|
||||||
ignore_list = []
|
|
||||||
|
|
||||||
def __init__(self, config={}):
|
def __init__(self, config={}):
|
||||||
Source.__init__(self, config)
|
Source.__init__(self, config)
|
||||||
self.cfg = config
|
self.cfg = config
|
||||||
|
self.ignore_list = []
|
||||||
if 'reliability' not in self.cfg:
|
if 'reliability' not in self.cfg:
|
||||||
log.msg('Reliability not set for ChemSpider', level=log.WARNING)
|
log.msg('Reliability not set for ChemSpider', level=log.WARNING)
|
||||||
self.cfg['reliability'] = ''
|
self.cfg['reliability'] = ''
|
||||||
|
Reference in New Issue
Block a user