scottransom / presto

Open source pulsar search and analysis toolkit
http://www.cv.nrao.edu/~sransom/presto/
GNU General Public License v2.0
240 stars 177 forks source link

Improve rednoise behaviour when writing output files #197

Closed alex88ridolfi closed 6 months ago

alex88ridolfi commented 6 months ago

rednoise now always writes the _red.fft and _red.inf files in the same directory (previously it would write the _red.fft file in the current working directory, and the _red.inf file in the directory specified in the "Data file name without suffix" entry of the original *.inf file)

Also, if the directory specified in the original *.inf file does not exist, rednoise now writes the output files in the current working directory (previously it would crash).

Finally, it now prints the paths of the output files, similarly to other PRESTO routines.

alex88ridolfi commented 6 months ago

I should have implemented the suggested changes. Please have a look and let me know if it looks fine to you.