File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1160,13 +1160,17 @@ def __init__(
11601160 if not seg_len :
11611161 self .seg_len = [segment .sig_len for segment in segments ]
11621162
1163- def wrsamp (self , write_dir = "" ):
1163+ def wrsamp (self , expanded = False , write_dir = "" ):
11641164 """
11651165 Write a multi-segment header, along with headers and dat files
11661166 for all segments, from this object.
11671167
11681168 Parameters
11691169 ----------
1170+ expanded : bool, optional
1171+ Whether to write each segment's expanded signal (`e_d_signal`)
1172+ instead of the uniform signal (`d_signal`). This flag is passed
1173+ through to each segment's `Record.wrsamp()` call.
11701174 write_dir : str, optional
11711175 The directory in which to write the files.
11721176
@@ -1181,7 +1185,7 @@ def wrsamp(self, write_dir=""):
11811185 # Perform record validity and cohesion checks, and write the
11821186 # associated segments.
11831187 for seg in self .segments :
1184- seg .wrsamp (write_dir = write_dir )
1188+ seg .wrsamp (expanded = expanded , write_dir = write_dir )
11851189
11861190 def _check_segment_cohesion (self ):
11871191 """
You can’t perform that action at this time.
0 commit comments