-
Notifications
You must be signed in to change notification settings - Fork 17
ENH: Make vak.prep.data_dir
option more flexible
#790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
vak.prep.data_dir
option more flexible
Hi @henricombrink sorry this isn't working like you need it to, and thank you for taking the time to share your solution. This is not a bug per se, it's just the way the code is designed right now. I agree with you that it would be convenient to have a way to set the One of the reasons I have avoided doing so is because I don't want to make it really easy for someone with a very large dataset to accidentally "prep" their entire dataset and fill up their disk with spectrograms, or something like that. (The other reason is just because I have left it in the backlog of features to add 😅) Instead of recursion by default, here's what I propose doing instead:
Please let me know if that sounds like it would address your use case. If so, I can probably find time to start work on this towards the end of the week. I need to think about how to actually implement -- once you confirm, I'll stare at the code as it is now and reply to myself with a plan for how to do it. I do appreciate you sharing your fix, but reading through this module again, I'm wondering if there's a way we can get |
Thank you for the detailed reply. I also don't see this as a bug, I just included the code here as it might help someone in the same situation. My "fix" as posted above solved my specific problem, so no need to change anything right now. I think option two above (adding "/**" at the end of the data_dir string) would be the easiest to allow for recursive file discovery. |
I have .wav files stored in a deep directory structure. VAK fails to find the files if the directory structure is more than two layers deep. I edited the files.py file at: ....\Lib\site-packages\vak\common\files\files.py which solved the issue for me.
I provide the edited code if anybody else encounters this problem:
files.py.txt
The text was updated successfully, but these errors were encountered: