updated parse_antoine_data to use newresult function
This commit is contained in:
parent
e347b7538d
commit
a272f9f6d6
@ -212,20 +212,17 @@ class NIST(Source):
|
|||||||
results.append(result)
|
results.append(result)
|
||||||
return results
|
return results
|
||||||
|
|
||||||
@staticmethod
|
def parse_antoine_data(self, table, summary):
|
||||||
def parse_antoine_data(table, summary):
|
|
||||||
"""Parse table containing parameters for the Antione equation"""
|
"""Parse table containing parameters for the Antione equation"""
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
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()
|
||||||
result = Result({
|
result = self.newresult(
|
||||||
'attribute': summary,
|
attribute=summary,
|
||||||
'value': 'A=%s, B=%s, C=%s' % (tds[1], tds[2], tds[3]),
|
value='A=%s, B=%s, C=%s' % (tds[1], tds[2], tds[3]),
|
||||||
'source': 'NIST',
|
conditions='%s K' % tds[0]
|
||||||
'reliability': 'Unknown',
|
)
|
||||||
'conditions': '%s K' % tds[0]
|
|
||||||
})
|
|
||||||
results.append(result)
|
results.append(result)
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
Reference in New Issue
Block a user