From 355f05a3d55f80a99e1c3d50eb448d276fc07b8c Mon Sep 17 00:00:00 2001 From: Bryon Lewis Date: Thu, 22 Jan 2026 08:57:03 -0500 Subject: [PATCH] fix: modify compressed.size output to mimic uncompressed.size --- batbot/spectrogram/__init__.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/batbot/spectrogram/__init__.py b/batbot/spectrogram/__init__.py index baf5537..b9814a0 100644 --- a/batbot/spectrogram/__init__.py +++ b/batbot/spectrogram/__init__.py @@ -1668,12 +1668,10 @@ def compute_wrapper( 'segments': metas, } if 'stft_db' in segments: - metadata['size']['compressed'] = ( - { - 'width.px': segments['stft_db'].shape[1], - 'height.px': segments['stft_db'].shape[0], - }, - ) + metadata['size']['compressed'] = { + 'width.px': segments['stft_db'].shape[1], + 'height.px': segments['stft_db'].shape[0], + } metadata_path = join(output_folder, f'{base}.metadata.json') with open(metadata_path, 'w') as metafile: