Source code for hikari.dataframes.lst
[docs]
class LstFrame:
def __init__(self):
pass
[docs]
@staticmethod
def read_r1(path):
"""Read and return the final value of R1 from lst file"""
# READ THE FILE
lines = [line.strip() for line in open(path, 'r') if line.strip()]
# READ THE LINES, LOOK FOR R1, RETURN THE LAST FOUND
r1 = ''
for line in lines:
if 'R1 =' in line:
r1 = float(line.split()[2])
return r1