Export Analysis#
Module that provides scripts for running public API analyses.
- osekit.public_api.export_analysis.create_parser() ArgumentParser#
Create the argument parser.
- osekit.public_api.export_analysis.main() None#
Export an analysis.
- osekit.public_api.export_analysis.write_analysis(analysis_type: AnalysisType, ads: AudioDataset | None, sds: SpectroDataset | None, subtype: str | None = None, matrix_folder_path: Path | None = None, spectrogram_folder_path: Path | None = None, welch_folder_path: Path | None = None, first: int = 0, last: int | None = None, logger: Logger | None = None, *, link: bool = True) None#
Write
SpectroDatasetoutput files to disk.Parameters#
- analysis_type: AnalysisType
Flags that should be used to specify the type of analysis to run. See
Analysis.AnalysisTypedocstring for more info.- subtype: str | None
Subtype of the written audio files as provided by the soundfile module. Defaulted as the default
16-bit PCMforwavaudio files. This parameter has no effect ifAnalysis.AUDIOis not in analysis.- ads: AudioDataset
The
AudioDatasetof which the data should be written.- sds: SpectroDataset
The
SpectroDatasetof which the data should be written.- matrix_folder_path: Path
The folder in which the matrix
npzfiles should be written.- spectrogram_folder_path: Path
The folder in which the spectrogram
pngfiles should be written.- welch_folder_path: Path
The folder in which the welch
npzfiles should be written.- link: bool
If
True, the ads data will be linked to the exported files.- first: int
Index of the first data object to write.
- last: int|None
Index after the last data object to write.
- logger: logging.Logger | None
Logger to use to log the analysis steps.