Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- x = open('master.dat', 'r')
- f = open('out.sv', 'w')
- #get rid of header
- x.readline()
- #read data lines
- y = x.readlines()
- x.close()
- for i in range(len(y)):
- u = y[i].strip()
- while u.find(" ") >= 0:
- u = u.replace(" "," ")
- c = u.split(" ")
- tc = c[0]
- td = str(float(c[1])*(30-3.7)+3.7)
- f.write(c[1] + " " + td + "\n")
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement