presto
presto copied to clipboard
Issues with the get_TOAs.py routine
Trying to run the get_TOAs.py command on my machine gives the following error:
File "/usr/local/bin/get_TOAs.py", line 388 except ValueError, fftfit.error: ^ SyntaxError: invalid syntax
Could I get any guidance on what is to be done to be able to resolve this error?
Nowhere near enough information to help diagnose this...
What is the exact command line you are using? And what are the input data? What happens when you run: python $PRESTO/python/fftfit_src/test_fftfit.py
Getting the following error while running the command -
get_TOAs.py -n 32 -e -g J0437.gauss J4037_5.76ms_Cand.pfd > J0437.tim
Error: 'J4037_5.76ms_Cand.pfd' was made allowing prepfold to search!
The same command works for the example PRESTO data (GBT_Lband).
The problem is with the "Error" that it is reporting. The file you are trying to get TOAs from was made without "-nosearch" (or, equivalently, -timing). You cannot get TOAs from a .pfd file where it searched for the best P and/or Pdot.