Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: must be real number, not str #12

Closed
alvinak opened this issue Feb 7, 2022 · 1 comment
Closed

TypeError: must be real number, not str #12

alvinak opened this issue Feb 7, 2022 · 1 comment

Comments

@alvinak
Copy link

alvinak commented Feb 7, 2022

I am getting following error while running dicom-ecg-plot.exe program on windows
Kindly anyone help me to fix this issue
Sample file is attached here with for the reference

dicom-ecg-plot.exe C:\ecg.dcm --layout 6x2 --output c:\result.png`

[ecg.zip](https://github.com/marcodebe/dicom-ecg-plot/files/8012811/ecg.zip)

Matplotlib is building the font cache; this may take a moment.
Traceback (most recent call last):
  File "dicom-ecg-plot.py", line 62, in <module>
  File "dicom-ecg-plot.py", line 39, in convert
  File "ecg\ecg.py", line 588, in draw
  File "ecg\ecg.py", line 456, in print_info
  File "ecg\ecg.py", line 367, in legend
TypeError: must be real number, not str
[10348] Failed to execute script 'dicom-ecg-plot' due to unhandled exception!
@marcodebe
Copy link
Owner

Version 1.3.3 should have fixed this error. I did the tests with your file (ecg.zip): version 1.3.3 works, previous version fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants