Project-OSmOSE / datarmor-toolkit

This repo gathers all our analytical codes to process big (mostly audio) data (eg related to machine learning, ambient noise analysis…)
0 stars 6 forks source link

redefining `all_files` in the notebook spectrogram_generator_pkg #32

Open cazaudo opened 1 year ago

cazaudo commented 1 year ago

currently in the notebook spectrogram_generator_pkg , we have to do

all_files = dataset.list_wav_to_process

to take into account subset_files.csv (done in class Spectrogram)

and

all_files = [str(audio_file) for audio_file in dataset.path.joinpath("data","audio", f"{str(dataset.spectro_duration)}_{str(sr_analysis)}").glob("*wav")]

to take into account a reshaping

can you please adapt the notebook so both actions can live together ? besides , why do you have to specify the folder name after reshaping (ie {str(dataset.spectroduration)}{str(sr_analysis)}) in the notebook anyway , it should be processed within the class Spectrogram only no ?