File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2933,15 +2933,19 @@ def wrsamp(
29332933 raise Exception (
29342934 "When using d_signal or e_d_signal, must also specify 'fmt', 'gain', and 'baseline' fields"
29352935 )
2936- if (e_p_signal is not None or e_d_signal is not None ) and samps_per_frame is None :
2937- raise Exception (
2938- "When passing e_p_signal or e_d_signal, you also need to specify samples per frame for each channel"
2939- )
2936+ if (
2937+ e_p_signal is not None or e_d_signal is not None
2938+ ) and samps_per_frame is None :
2939+ raise Exception (
2940+ "When passing e_p_signal or e_d_signal, you also need to specify samples per frame for each channel"
2941+ )
29402942
29412943 # If samps_per_frame is provided, check that it aligns as expected with the channels in the signal
29422944 if samps_per_frame :
29432945 # Get the number of elements being passed in samps_per_frame
2944- samps_per_frame_length = len (samps_per_frame ) if isinstance (samps_per_frame , list ) else 1
2946+ samps_per_frame_length = (
2947+ len (samps_per_frame ) if isinstance (samps_per_frame , list ) else 1
2948+ )
29452949 # Get properties of the signal being passed
29462950 first_valid_signal = next (
29472951 signal for signal in signal_list if signal is not None
You can’t perform that action at this time.
0 commit comments