Currently dstools-extract-ds deletes all temporary files in the MeasurementSet's parent directory. In extract_ds.py, main ends with
os.system(f"rm -r {ms.path.parent}/*dstools-temp*.*ms 2>/dev/null")
This causes difficulties for parallel processing, since when the command finishes executing in one process, it causes a failure in the other processes. A temporary fix for my purposes is to separate my data into multiple directories, but would it be possible to change extract_ds.py so that only the files created by the given process are removed?
Currently
dstools-extract-dsdeletes all temporary files in the MeasurementSet's parent directory. Inextract_ds.py,mainends withThis causes difficulties for parallel processing, since when the command finishes executing in one process, it causes a failure in the other processes. A temporary fix for my purposes is to separate my data into multiple directories, but would it be possible to change
extract_ds.pyso that only the files created by the given process are removed?