Skip to content

Skipping over invalid files #68

Description

@SanderBud

Hi,

Im trying to run batdetect2 on research data that is stored on a read-only server. The issue I'm running into is that when batdetect2 (ran on folders) runs into a wav file that is not readable, it stops processing this folder. I'm aware of some files that got corrupted during the writing process on the bat detector. In other analysis programs, these files were skipped and a log file would indicate what files where not analysed. Is this also a possibility in Batdetect2? I could not find such a functionality in the documentation.

I'm not able to delete these corrupted wav files beforehand because the server is read-only. I also tried to integrate a python script in the command to only feed 'valid' wav files to batdetect2, but this makes it very slow, which is an issue as a I have to analyse north of 3m five-second files.

Example of the error I get when it runs into a corrupt/unreadable file:
soundfile.LibsndfileError: Error opening 'PATH/FILENAME.wav': Format not recognised.

Thanks,
Sander

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions