Project-OSmOSE / OSEkit

OSEkit is an open source suite of tools written in python and dedicated to the management and analysis of data in underwater passive acoustics.
https://osmose.ifremer.fr
Other
3 stars 2 forks source link

bug in counting nber of segmented wav #181

Open cazaudo opened 3 months ago

cazaudo commented 3 months ago

bug appeared with the following parameters :

dataset_name = "2010" campaign_name = "SPM_AuralA"

dataset.spectro_duration = 850 # seconds dataset.dataset_sr = 1000 # Hz

dataset.zoom_level = 0 dataset.nfft = 1024 dataset.window_size = 1024 dataset.overlap = 0

bug description :

the manual computation of nb_reshaped_files done in Spectrogram as shown below does not match the actual nber of segmented files created , no bugs found in the logs of reshaping , and unique duration of wav files , so this needs further investigation

        nb_reshaped_files = (
            audio_file_origin_duration * audio_file_count
        ) / self.spectro_duration
        metadata["audio_file_count"] = int(nb_reshaped_files)