diff --git a/dw/tasks/audio_utils.py b/dw/tasks/audio_utils.py index 42ce9a09..81d5f6b7 100644 --- a/dw/tasks/audio_utils.py +++ b/dw/tasks/audio_utils.py @@ -592,7 +592,9 @@ def level_dbfs(waveform, measure="peak"): if measure == "peak": value = float(numpy.abs(waveform).max()) else: - value = float(numpy.sqrt(numpy.mean(numpy.square(waveform, dtype=numpy.float64)))) + value = float( + numpy.sqrt(numpy.mean(numpy.square(waveform, dtype=numpy.float64))) + ) if value <= 0.0: return None return 20.0 * numpy.log10(value) diff --git a/dw/tasks/concat_videos.py b/dw/tasks/concat_videos.py index 691487e7..829c7698 100644 --- a/dw/tasks/concat_videos.py +++ b/dw/tasks/concat_videos.py @@ -91,9 +91,11 @@ def concat_videos( # across the whole set, so the last shot's loudness has to be known # before the first one is scaled waveforms = [ - as_channels_samples(video.audio) - if isinstance(video, AudioVideo) and video.audio is not None - else None + ( + as_channels_samples(video.audio) + if isinstance(video, AudioVideo) and video.audio is not None + else None + ) for video in videos ] if match_levels: