added uncertainty to results from scraping individual data points urls
This commit is contained in:
parent
775a920b9b
commit
7e984b60d8
@ -166,9 +166,14 @@ class NIST(Source):
|
|||||||
|
|
||||||
for tr in table.xpath('tr[td]'):
|
for tr in table.xpath('tr[td]'):
|
||||||
tds = tr.xpath('td/text()').extract()
|
tds = tr.xpath('td/text()').extract()
|
||||||
|
uncertainty = ''
|
||||||
|
m = re.search('Uncertainty assigned by TRC = (.*?) ', tds[-1])
|
||||||
|
if m:
|
||||||
|
uncertainty = '+- %s ' % m.group(1)
|
||||||
|
# [TODO]: get the plusminus sign working in here
|
||||||
result = Result({
|
result = Result({
|
||||||
'attribute': name,
|
'attribute': name,
|
||||||
'value': '%s %s' % (tds[0], unit),
|
'value': '%s %s%s' % (tds[0], uncertainty, unit),
|
||||||
'source': 'NIST',
|
'source': 'NIST',
|
||||||
'reliability': 'Unknown',
|
'reliability': 'Unknown',
|
||||||
'conditions': ''
|
'conditions': ''
|
||||||
|
Reference in New Issue
Block a user