changed default reliability from empty string to Unknown as per UML design
This commit is contained in:
parent
9389af99ba
commit
a4a21f2578
@ -41,7 +41,7 @@ class ChemSpider(Parser):
|
|||||||
'attribute': prop_name.extract().encode('utf-8'),
|
'attribute': prop_name.extract().encode('utf-8'),
|
||||||
'value': prop_values[i].extract().encode('utf-8'),
|
'value': prop_values[i].extract().encode('utf-8'),
|
||||||
'source': 'ChemSpider Predicted - ACD/Labs Tab',
|
'source': 'ChemSpider Predicted - ACD/Labs Tab',
|
||||||
'reliability': '',
|
'reliability': 'Unknown',
|
||||||
'conditions': ''
|
'conditions': ''
|
||||||
})
|
})
|
||||||
properties.append(new_prop)
|
properties.append(new_prop)
|
||||||
@ -61,7 +61,7 @@ class ChemSpider(Parser):
|
|||||||
'attribute': property_name,
|
'attribute': property_name,
|
||||||
'value': line.xpath('text()').extract()[0].rstrip(),
|
'value': line.xpath('text()').extract()[0].rstrip(),
|
||||||
'source': line.xpath('strong/text()').extract()[0].rstrip(),
|
'source': line.xpath('strong/text()').extract()[0].rstrip(),
|
||||||
'reliability': '',
|
'reliability': 'Unknown',
|
||||||
'conditions': ''
|
'conditions': ''
|
||||||
})
|
})
|
||||||
properties.append(new_prop)
|
properties.append(new_prop)
|
||||||
@ -132,7 +132,7 @@ class ChemSpider(Parser):
|
|||||||
'attribute': name,
|
'attribute': name,
|
||||||
'value': value,
|
'value': value,
|
||||||
'source': 'ChemSpider',
|
'source': 'ChemSpider',
|
||||||
'reliability': '',
|
'reliability': 'Unknown',
|
||||||
'conditions': ''
|
'conditions': ''
|
||||||
})
|
})
|
||||||
properties.append(result)
|
properties.append(result)
|
||||||
|
Reference in New Issue
Block a user