Archived
1
0

added uncertainty to results from scraping individual data points urls

This commit is contained in:
RTB 2014-05-09 14:24:08 +02:00
parent 775a920b9b
commit 7e984b60d8

View File

@ -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': ''