Skip to content

Commit

Permalink
ecg gen: Header file comments update
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshi-s committed May 28, 2024
1 parent b9b9535 commit fc8764d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions codes/ecg-image-generator/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,7 @@ def write_wfdb_file(ecg_frame, filename, rate, header_file, write_dir, full_mode
sig_name = leads, p_signal = array.T, fmt = header.fmt,
adc_gain = header.adc_gain, baseline = header.baseline,
base_time = header.base_time, base_date = header.base_date,
write_dir = write_dir)

with open(os.path.join(write_dir, tail + '.hea'), "a") as f:
for line in header.comments:
f.write("#" + line)
f.write("\n")

write_dir = write_dir, comments = header.comments)

def get_lead_pixel_coordinate(leads):

Expand Down

0 comments on commit fc8764d

Please sign in to comment.