You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- recordname (required): The name of the WFDB record to be read (without any file extensions).
876
-
- sampfrom (default=0): The starting sample number to read for each channel.
877
-
- sampto (default=length of entire signal): The final sample number to read for each channel.
878
-
- channels (default=all channels): Indices specifying the channel to be returned.
879
-
- physical (default=1): Flag that specifies whether to return signals in physical (1) or digital (0) units.
880
-
- stacksegments (default=1): Flag used only for multi-segment files. Specifies whether to return the signal as a single stacked/concatenated numpy array (1) or as a list of one numpy array for each segment (0).
881
-
882
-
883
-
Output variables:
884
-
- sig: An nxm numpy array where n is the signal length and m is the number of channels.
885
-
If the input record is a multi-segment record, depending on the input stacksegments flag,
886
-
sig will either be a single stacked/concatenated numpy array (1) or a list of one numpy
887
-
array for each segment (0). For empty segments, stacked format will contain Nan values,
888
-
and non-stacked format will contain a single integer specifying the length of the empty segment.
889
-
- fields: A dictionary of metadata about the record extracted or deduced from the header/signal file.
890
-
If the input record is a multi-segment record, the output argument will be a list of dictionaries:
891
-
: The first list element will be a dictionary of metadata about the master header.
892
-
: If the record is in variable layout format, the next list element will be a dictionary
893
-
of metadata about the layout specification header.
894
-
: The last list element will be a list of dictionaries of metadata for each segment.
895
-
For empty segments, the dictionary will be replaced by a single string: 'Empty Segment'
896
-
"""
897
-
898
-
filestoremove= []
899
-
config=loadconfig('wfdb.config')
900
-
901
-
ifconfig.get('pbdownload','getpbfiles') ==1: # Flag specifying whether to allow downloading from physiobank
- recordname (required): The name of the WFDB record to be read (without any file extensions).
1038
+
- sampfrom (default=0): The starting sample number to read for each channel.
1039
+
- sampto (default=length of entire signal): The final sample number to read for each channel.
1040
+
- channels (default=all channels): Indices specifying the channel to be returned.
1041
+
- physical (default=1): Flag that specifies whether to return signals in physical (1) or digital (0) units.
1042
+
- stacksegments (default=1): Flag used only for multi-segment files. Specifies whether to return the signal as a single stacked/concatenated numpy array (1) or as a list of one numpy array for each segment (0).
1043
+
1044
+
1045
+
Output variables:
1046
+
- sig: An nxm numpy array where n is the signal length and m is the number of channels.
1047
+
If the input record is a multi-segment record, depending on the input stacksegments flag,
1048
+
sig will either be a single stacked/concatenated numpy array (1) or a list of one numpy
1049
+
array for each segment (0). For empty segments, stacked format will contain Nan values,
1050
+
and non-stacked format will contain a single integer specifying the length of the empty segment.
1051
+
- fields: A dictionary of metadata about the record extracted or deduced from the header/signal file.
1052
+
If the input record is a multi-segment record, the output argument will be a list of dictionaries:
1053
+
: The first list element will be a dictionary of metadata about the master header.
1054
+
: If the record is in variable layout format, the next list element will be a dictionary
1055
+
of metadata about the layout specification header.
1056
+
: The last list element will be a list of dictionaries of metadata for each segment.
1057
+
For empty segments, the dictionary will be replaced by a single string: 'Empty Segment'
1058
+
"""
1059
+
1060
+
filestoremove= []
1061
+
config=loadconfig('wfdb.config')
1062
+
1063
+
ifconfig.get('pbdownload','getpbfiles') ==1: # Flag specifying whether to allow downloading from physiobank
0 commit comments