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(
2933
2933
raise Exception (
2934
2934
"When using d_signal or e_d_signal, must also specify 'fmt', 'gain', and 'baseline' fields"
2935
2935
)
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
+ )
2940
2942
2941
2943
# If samps_per_frame is provided, check that it aligns as expected with the channels in the signal
2942
2944
if samps_per_frame :
2943
2945
# 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
+ )
2945
2949
# Get properties of the signal being passed
2946
2950
first_valid_signal = next (
2947
2951
signal for signal in signal_list if signal is not None
You can’t perform that action at this time.
0 commit comments