This is CASA eMERLIN pipeline to calibrate data from the e-MERLIN array. Please fork the repository before making any changes and read the Coding Practices page in the wiki. Please add issues with the pipeline in the issues tab.
GNU General Public License v3.0
14
stars
11
forks
source link
Pipeline should check if file/directory exists before removing it #59
The pipeline tries to remove files and directories before running a few tasks, e.g. importfitsidi, hanning etc. This is attempted even if the directory in question does not exist. Hence the user sees message of the type
2017-10-12 10:53:40 | INFO | Start hanning
rm: cannot remove 'CY4222_C_20171001_hanning.ms': No such file or directory
The pipeline should check if a file exists before trying to remove it. This can be done e.g. by using the python module os.path.exists(path).
The pipeline tries to remove files and directories before running a few tasks, e.g. importfitsidi, hanning etc. This is attempted even if the directory in question does not exist. Hence the user sees message of the type 2017-10-12 10:53:40 | INFO | Start hanning rm: cannot remove 'CY4222_C_20171001_hanning.ms': No such file or directory The pipeline should check if a file exists before trying to remove it. This can be done e.g. by using the python module os.path.exists(path).