Skip to content

Commit

Permalink
ecg gen: bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshi-s committed May 16, 2024
1 parent e446e3f commit 8365e06
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions codes/ecg-image-generator/ecg_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,6 @@ def ecg_plot(
linewidth=line_width,
color=color_line
)
x_vals = np.arange(0,len(ecg['full'+full_mode])*step,step) + x_gap + dc_full_lead_offset
y_vals = ecg['full'+full_mode] + row_height/2-lead_name_offset + 0.8

if (bbox):
renderer1 = fig.canvas.get_renderer()
Expand All @@ -435,7 +433,6 @@ def ecg_plot(
current_lead_ds["start_sample"] = start_index
current_lead_ds["end_sample"] = start_index + len(ecg['full'+full_mode])

current_lead_ds["plotted_pixels"] = [list(ax.transData.transform((xi, yi))) for xi, yi in zip(x_vals, y_vals)]
leads_ds.append(current_lead_ds)

head, tail = os.path.split(rec_file_name)
Expand Down

0 comments on commit 8365e06

Please sign in to comment.