File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2937,15 +2937,21 @@ def wrsamp(
29372937 # If samps_per_frame is a list, check that it aligns as expected with the channels in the signal
29382938 if isinstance (samps_per_frame , list ):
29392939 # Get properties of the signal being passed
2940- first_valid_signal = next (signal for signal in signal_list if signal is not None )
2940+ first_valid_signal = next (
2941+ signal for signal in signal_list if signal is not None
2942+ )
29412943 if isinstance (first_valid_signal , np .ndarray ):
29422944 num_sig_channels = first_valid_signal .shape [1 ]
2943- channel_samples = [first_valid_signal .shape [0 ]] * first_valid_signal .shape [1 ]
2945+ channel_samples = [
2946+ first_valid_signal .shape [0 ]
2947+ ] * first_valid_signal .shape [1 ]
29442948 elif isinstance (first_valid_signal , list ):
29452949 num_sig_channels = len (first_valid_signal )
29462950 channel_samples = [len (channel ) for channel in first_valid_signal ]
29472951 else :
2948- raise TypeError ("Unsupported signal format. Must be ndarray or list of lists." )
2952+ raise TypeError (
2953+ "Unsupported signal format. Must be ndarray or list of lists."
2954+ )
29492955
29502956 # Check that the number of channels matches the number of samps_per_frame entries
29512957 if num_sig_channels != len (samps_per_frame ):
You can’t perform that action at this time.
0 commit comments