Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def get_length(fn):
  2. with open(fn, 'r') as inp:
  3. for line in inp:
  4. if line.strip().startswith('HOMOGENEIZED CROSS SECTIONS FOR CELL'):
  5. line = next(inp)
  6. line = next(inp)
  7. line = next(inp)
  8. sigtr = float(line.split()[9])
  9. siga = float(line.split()[6])
  10. length = 1.0/(3.0*sigtr*siga)
  11. return length
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement