presto icon indicating copy to clipboard operation
presto copied to clipboard

Issues with the get_TOAs.py routine

Open Nikhilvnaik opened this issue 9 years ago • 3 comments

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?

Nikhilvnaik avatar Aug 16 '15 07:08 Nikhilvnaik

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

scottransom avatar Aug 16 '15 15:08 scottransom

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).

parulj3795 avatar Jul 10 '19 14:07 parulj3795

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.

scottransom avatar Jul 10 '19 14:07 scottransom