Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Crystal:
- # Variables
- cid = -1
- thetaID = -1
- phiID = -1
- theta = 0.0
- phi = 0
- def __init__(self, cid):
- self.cid = cid
- f = open('crystalData', 'r')
- for i, line in enumerate(f):
- if i == cid+1:
- print line
- arr = (line.replace(" ", "")).split('|')
- self.cid = int(arr[1])
- self.thetaID = int(arr[2])
- self.theta = float(arr[3])
- #print(cid, thetaID, theta)
- print thetaID
- break
- crystal = Crystal(2015)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement