File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def csv_to_wfdb(
33
33
header = True ,
34
34
delimiter = "," ,
35
35
verbose = False ,
36
- output_dir = None ,
36
+ write_dir = None ,
37
37
):
38
38
"""
39
39
Read a WFDB header file and return either a `Record` object with the
@@ -236,7 +236,7 @@ def csv_to_wfdb(
236
236
verbose : bool, optional
237
237
Whether to print all the information read about the file (True) or
238
238
not (False).
239
- output_dir : str, optional
239
+ write_dir : str, optional
240
240
The directory where the output files will be saved. If not provided,
241
241
the output files will be saved in the same directory as the input file.
242
242
@@ -325,11 +325,11 @@ def csv_to_wfdb(
325
325
print ("Signal names: {}" .format (sig_name ))
326
326
327
327
# Determine the output directory
328
- if output_dir :
329
- if not os .path .exists (output_dir ):
330
- os .makedirs (output_dir )
328
+ if write_dir :
329
+ if not os .path .exists (write_dir ):
330
+ os .makedirs (write_dir )
331
331
output_base = os .path .join (
332
- output_dir , os .path .basename (file_name ).replace (".csv" , "" )
332
+ write_dir , os .path .basename (file_name ).replace (".csv" , "" )
333
333
)
334
334
else :
335
335
if os .sep in file_name :
You can’t perform that action at this time.
0 commit comments