@@ -310,6 +310,22 @@ class Record(BaseRecord, _headers.HeadersMixin, _signals.SignalsMixin):
310310
311311 In addition, the d_signals and p_signals attributes store the digital and physical
312312 signals of WFDB records with at least one channel.
313+
314+ Contructor function:
315+ def __init__(self, p_signals=None, d_signals=None,
316+ recordname=None, nsig=None,
317+ fs=None, counterfreq=None, basecounter=None,
318+ siglen=None, basetime=None, basedate=None,
319+ filename=None, fmt=None, sampsperframe=None,
320+ skew=None, byteoffset=None, adcgain=None,
321+ baseline=None, units=None, adcres=None,
322+ adczero=None, initvalue=None, checksum=None,
323+ blocksize=None, signame=None, comments=None)
324+
325+ Example Usage:
326+ import wfdb
327+ record1 = wfdb.Record(recordname='r1', fs=250, nsig=2, siglen=1000, filename=['r1.dat','r1.dat'])
328+
313329 """
314330 # Constructor
315331 def __init__ (self , p_signals = None , d_signals = None ,
@@ -423,8 +439,20 @@ class MultiRecord(BaseRecord, _headers.MultiHeadersMixin):
423439 instance method can be called on MultiRecord objects to return a single segment representation
424440 of the record as a Record object. The resulting Record object will have its 'p_signals' field set.
425441
426- eg. record1 = wfdb.rdsamp('s00001-2896-10-10-00-31', m2s = False)
427- record1 = record1.multi_to_single()
442+ Contructor function:
443+ def __init__(self, segments = None, layout = None,
444+ recordname=None, nsig=None, fs=None,
445+ counterfreq=None, basecounter=None,
446+ siglen=None, basetime=None, basedate=None,
447+ segname = None, seglen = None, comments=None)
448+
449+ Example Usage:
450+ import wfdb
451+ recordM = wfdb.MultiRecord(recordname='rm', fs=50, nsig=8, siglen=9999,
452+ segname=['rm_1', '~', rm_2'], seglen=[800, 200, 900])
453+
454+ recordL = wfdb.rdsamp('s00001-2896-10-10-00-31', m2s = False)
455+ recordL = recordL.multi_to_single()
428456 """
429457
430458 # Constructor
@@ -972,7 +1000,7 @@ def wrsamp(recordname, fs, units, signames, p_signals = None, d_signals = None,
9721000 # Write a local WFDB record (manually inserting fields)
9731001 wfdb.wrsamp('ecgrecord', fs = 250, units = ['mV', 'mV'], signames = ['I', 'II'], p_signals = sig, fmt = ['16', '16'])
9741002 """
975-
1003+
9761004 # Check input field combinations
9771005 if p_signals is not None and d_signals is not None :
9781006 sys .exit ('Must only give one of the inputs: p_signals or d_signals' )
@@ -1229,9 +1257,6 @@ def dldatabasefiles(pbdb, dlbasedir, files, keepsubdirs = True, overwrite = Fals
12291257 - pbdb (required): The Physiobank database directory to download.
12301258 eg. For database 'http://physionet.org/physiobank/database/mitdb', pbdb = 'mitdb'.
12311259 - dlbasedir (required): The full local directory path in which to download the files.
1232- - records (default='all'): Specifier of the WFDB records to download. Is either a list of strings
1233- which each specify a record, or 'all' to download all records listed in the database's RECORDS file.
1234- eg. records = ['test01_00s', test02_45s] for database https://physionet.org/physiobank/database/macecgdb/
12351260 - files (required): A list of strings specifying the file names to download relative to the database
12361261 base directory
12371262 - keepsubdirs (default=True): Whether to keep the relative subdirectories of downloaded files
0 commit comments