Closed GladB closed 5 years ago
It seems like the right thing to do given the section header is "# after the model has finished running, remove the wav files" - i.e. the wav files are temporary and should not show up in the output folder. If it is desired that the wav files show up in the output, it can be changed easily (or another flag could be added). Just let me know.
Yes we do need to retrieve them at the end (I think the previous version of the script did return the .wav chunks corresponding to the selected high volume regions)
Ok, I reverted it back. The code will only copy new files, but not overwrite existing files in output_dir, which may lead to inconsistent file sets, now that output_dir can be configured.
When an output folder is specified, the wav chunks that should be created by the script are not copied from the temp folder to the output folder (see line https://github.com/srvk/DiViMe/blob/master/utils/high_volubility.py#L167). I guess removing the second
not
(innot fin.endswith('.wav')
) on that line would solve the issue?