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]'):
|
||||
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({
|
||||
'attribute': name,
|
||||
'value': '%s %s' % (tds[0], unit),
|
||||
'value': '%s %s%s' % (tds[0], uncertainty, unit),
|
||||
'source': 'NIST',
|
||||
'reliability': 'Unknown',
|
||||
'conditions': ''
|
||||
|
Reference in New Issue
Block a user