Skip to content

No warning when analysis sr and fft sr differ #337

@Gautzilla

Description

@Gautzilla

Running an analysis like this:

analysis = Analysis(
    analysis_type=AnalysisType.SPECTROGRAM,
    begin=Timestamp("2023-04-05 16:45:00"),
    end=Timestamp("2023-04-05 17:00:00"),
    data_duration=Timedelta(seconds=10),
    sample_rate=32_000,
    fft=ShortTimeFFT(hamming(1024), 128, fs=48_000),
)

where the sample_rate and the ShortTimeFFT.fs differ should raise a warning, or even an exception.

Moreover, if the analysis have both AUDIO and SPECTROGRAM (or any spectral) export, the linking will raise an exception anyhow, so we'd rather raise an exception at the very beginning.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions