alphanumericslab / ecg-image-kit

A toolkit for analysis, synthesis, and digitization of electrocardiogram images
BSD 3-Clause "New" or "Revised" License
36 stars 23 forks source link

Put custom_template.png in a new temp directory each time #3

Closed james-weigle closed 8 months ago

james-weigle commented 8 months ago

Currently, each run of ECG image generation uses the same file path ./custom_template.png for a template, which can lead to race conditions when running it in parallel. We can avoid this by creating the file in a new temporary directory each time.

deepanshi-s commented 8 months ago

The code in main branch has been updated to resolve this issue. Custom_template.png is no longer generated.

james-weigle commented 8 months ago

Thank you!