Skip to content

Commit a5d50c2

Browse files
committed
output_dir to write_dir for consistency.
1 parent 048e0e5 commit a5d50c2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

wfdb/io/convert/csv.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def csv_to_wfdb(
3333
header=True,
3434
delimiter=",",
3535
verbose=False,
36-
output_dir=None,
36+
write_dir=None,
3737
):
3838
"""
3939
Read a WFDB header file and return either a `Record` object with the
@@ -236,7 +236,7 @@ def csv_to_wfdb(
236236
verbose : bool, optional
237237
Whether to print all the information read about the file (True) or
238238
not (False).
239-
output_dir : str, optional
239+
write_dir : str, optional
240240
The directory where the output files will be saved. If not provided,
241241
the output files will be saved in the same directory as the input file.
242242
@@ -325,11 +325,11 @@ def csv_to_wfdb(
325325
print("Signal names: {}".format(sig_name))
326326

327327
# 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)
331331
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", "")
333333
)
334334
else:
335335
if os.sep in file_name:

0 commit comments

Comments
 (0)