Guest User

Untitled

a guest
Jan 24th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import os, sys
  2. import numpy as np
  3.  
  4. with open('paths.txt', 'r') as paths_list:
  5. for file_path in paths_list:
  6. data = np.loadtxt(file_path.strip())
  7. filename = file_path[-26:-5]
  8.  
  9. # creates the 'polyco_new.dat'-file
  10. os.system("tempo2 -tempo1 -polyco "%f %f 120 15 12 @ 0" -f ephemerides.par" %(t0, te))
  11.  
  12. # renames the file
  13. os.rename('polyco_new.dat', 'polycox_'+filename+'.dat')
Add Comment
Please, Sign In to add comment