File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1735,12 +1735,14 @@ def compute_wrapper(
17351735
17361736 segments ['stft_db' ].append (stft_db [:, start + trim_begin : start + trim_end ])
17371737 segment_waveplot = waveplot [:, start + trim_begin : start + trim_end ]
1738- metadata_waveplot = {
1739- "waveplot" : segment_waveplot ,
1740- }
1738+ segments ['waveplot' ].append (segment_waveplot )
1739+ # convert to JSON serializable datatype and add to metadata if segment_waves is True
17411740 if segment_waves :
1741+ segment_waveplot = segment_waveplot .tolist ()
1742+ metadata_waveplot = {
1743+ "waveplot" : segment_waveplot ,
1744+ }
17421745 metadata .update (metadata_waveplot )
1743- segments ['waveplot' ].append (segment_waveplot )
17441746 segments ['costs' ].append (costs [:, trim_begin :trim_end ])
17451747 if debug_path :
17461748 segments ['canvas' ].append (canvas [:, trim_begin :trim_end ])
You can’t perform that action at this time.
0 commit comments