@@ -866,7 +866,7 @@ def smooth_frames(self, sigtype='physical'):
866
866
867
867
def _rd_segment (file_name , dir_name , pn_dir , fmt , n_sig , sig_len , byte_offset ,
868
868
samps_per_frame , skew , init_value , sampfrom , sampto , channels ,
869
- smooth_frames , ignore_skew , no_file = False , sig_data = None , return_res = 64 ):
869
+ ignore_skew , no_file = False , sig_data = None , return_res = 64 ):
870
870
"""
871
871
Read the digital samples from a single segment record's associated
872
872
dat file(s).
@@ -899,8 +899,6 @@ def _rd_segment(file_name, dir_name, pn_dir, fmt, n_sig, sig_len, byte_offset,
899
899
The starting sample number to be read from the signals.
900
900
sampto : int
901
901
The final sample number to be read from the signals.
902
- smooth_frames : bool
903
- Deprecated. Must be set to False.
904
902
ignore_skew : bool
905
903
Used when reading records with at least one skewed signal.
906
904
Specifies whether to apply the skew to align the signals in the
@@ -991,9 +989,6 @@ def _rd_segment(file_name, dir_name, pn_dir, fmt, n_sig, sig_len, byte_offset,
991
989
r_w_channel [fn ] = [c - min (datchannel [fn ]) for c in w_channel [fn ]]
992
990
out_dat_channel [fn ] = [channels .index (c ) for c in w_channel [fn ]]
993
991
994
- if smooth_frames :
995
- raise ValueError ('smooth_frames=True is not supported' )
996
-
997
992
# Return each sample in signals with multiple samples/frame, without smoothing.
998
993
# Return a list of numpy arrays for each signal.
999
994
signals = [None ] * len (channels )
@@ -1013,7 +1008,6 @@ def _rd_segment(file_name, dir_name, pn_dir, fmt, n_sig, sig_len, byte_offset,
1013
1008
init_value = w_init_value [fn ],
1014
1009
sampfrom = sampfrom ,
1015
1010
sampto = sampto ,
1016
- smooth_frames = smooth_frames ,
1017
1011
no_file = no_file ,
1018
1012
sig_data = sig_data )
1019
1013
@@ -1026,8 +1020,7 @@ def _rd_segment(file_name, dir_name, pn_dir, fmt, n_sig, sig_len, byte_offset,
1026
1020
1027
1021
def _rd_dat_signals (file_name , dir_name , pn_dir , fmt , n_sig , sig_len ,
1028
1022
byte_offset , samps_per_frame , skew , init_value ,
1029
- sampfrom , sampto , smooth_frames ,
1030
- no_file = False , sig_data = None ):
1023
+ sampfrom , sampto , no_file = False , sig_data = None ):
1031
1024
"""
1032
1025
Read all signals from a WFDB dat file.
1033
1026
@@ -1059,8 +1052,6 @@ def _rd_dat_signals(file_name, dir_name, pn_dir, fmt, n_sig, sig_len,
1059
1052
The starting sample number to be read from the signals.
1060
1053
sampto : int
1061
1054
The final sample number to be read from the signals.
1062
- smooth_frames : bool
1063
- Deprecated. Must be set to False.
1064
1055
no_file : bool, optional
1065
1056
Used when using this function with just an array of signal data
1066
1057
and no associated file to read the data from.
@@ -1179,9 +1170,6 @@ def _rd_dat_signals(file_name, dir_name, pn_dir, fmt, n_sig, sig_len,
1179
1170
# At this point, dtype of sig_data is the minimum integer format
1180
1171
# required for storing the final digital samples.
1181
1172
1182
- if smooth_frames :
1183
- raise ValueError ('smooth_frames=True is not supported' )
1184
-
1185
1173
# List of 1d numpy arrays
1186
1174
signal = []
1187
1175
# Transfer over samples
0 commit comments