Skip to content

Commit

Permalink
ecg gen: printed text template default
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshi-s committed May 20, 2024
1 parent 8365e06 commit 623c36f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions codes/ecg-image-generator/TemplateFiles/generate_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,7 @@ def generate_template(header_file):
fields = wfdb.rdheader(filename)

if fields.comments == []:
template_file_content = open(os.path.join('TemplateFiles','TextFile1.txt'), 'r')
Lines = template_file_content.readlines()
lines = []
max = 0
for line in Lines:
if(len(line.strip()) > max):
maxIdx = line.strip()
max = len(line.strip())
lines.append(line.strip())

return lines, {}, 0
return [], {}, 0

else:
comments = fields.comments
Expand Down

0 comments on commit 623c36f

Please sign in to comment.