File tree 1 file changed +3
-6
lines changed 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2048,17 +2048,14 @@ def sampfreq(record_name, pn_dir=None):
2048
2048
>>> ECG 4 500
2049
2049
2050
2050
"""
2051
- dir_name , base_record_name = os .path .split (record_name )
2052
- dir_name = os .path .abspath (dir_name )
2053
-
2054
2051
if (pn_dir is not None ) and ('.' not in pn_dir ):
2055
2052
dir_list = pn_dir .split (os .sep )
2056
2053
pn_dir = posixpath .join (dir_list [0 ], get_version (dir_list [0 ]),
2057
2054
* dir_list [1 :])
2058
2055
2059
- record = rdheader (record_name , pn_dir = pn_dir ). __dict__
2060
- samps_per_frame = [record [ 'fs' ] * samp for samp in record [ ' samps_per_frame' ] ]
2061
- sig_name = record [ ' sig_name' ]
2056
+ record = rdheader (record_name , pn_dir = pn_dir )
2057
+ samps_per_frame = [record . fs * samp for samp in record . samps_per_frame ]
2058
+ sig_name = record . sig_name
2062
2059
2063
2060
for sig ,samp in zip (sig_name , samps_per_frame ):
2064
2061
print ('{}\t {}' .format (sig ,samp ))
You can’t perform that action at this time.
0 commit comments