示例#1
0
def test_multiple_extraction():
    tpl = Tpl(TEST_FLD+"/FC1_rev01.tpl")
    tpl.extract(3, 4, 5)
    assert tpl.data[3][0] == 9.973410e6
    assert 'Pressure' in tpl.label[3]
    assert tpl.data[4][0] == 1.291370e1
    assert 'temperature' in tpl.label[4]
    assert tpl.data[5][0] == 1.00000000
    assert 'Holdup' in tpl.label[5]
示例#2
0
文件: test_tpl.py 项目: srngit/pyfas
def test_extraction():
    tpl = Tpl("FC1_rev01.tpl")
    tpl.extract(3)
    assert tpl.data[3][0] == 9.973410e6
    assert 'Pressure' in tpl.label[3]
示例#3
0
def test_extraction_preprocessor():
    tpl = Tpl(TEST_FLD+"/2016_1_Legacy.tpl")
    tpl.extract(4)
    assert tpl.data[4][0] == 487.87419999999997
    assert 'OILC' in tpl.label[4]