Skip to content

Commit

Permalink
fixing style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocat93 committed Oct 1, 2024
1 parent ca78cd9 commit 5160191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/senselab/audio/tasks/plotting/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def plot_specgram(audio: AudioData, mel_scale: bool = False, title: str = "Spect
- Add option to save the plot
- Add option to choose the size of the Figure
"""

def _power_to_db(
spectrogram: np.ndarray, ref: float = 1.0, amin: float = 1e-10, top_db: float = 80.0
) -> np.ndarray:
Expand Down Expand Up @@ -167,4 +168,3 @@ def play_audio(audio: AudioData) -> None:
display(Audio((waveform[0], waveform[1]), rate=sample_rate))
else:
raise ValueError("Waveform with more than 2 channels are not supported.")

0 comments on commit 5160191

Please sign in to comment.