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

SyntaxError: invalid syntax #4

Open
Hemantr05 opened this issue Apr 18, 2019 · 2 comments
Open

SyntaxError: invalid syntax #4

Hemantr05 opened this issue Apr 18, 2019 · 2 comments

Comments

@Hemantr05
Copy link

from dicom_contour.contour import *

File "C:\Users\abc\AppData\Local\Programs\Python\Python35\lib\site-packages\dicom_contour\contour.py", line 306
plt.imsave(new_path + f'/images/image_{i}.{img_format}', X[i, :, :])

SyntaxError: invalid syntax

How do I resolve this error?

@KeremTurgutlu
Copy link
Owner

KeremTurgutlu commented Aug 25, 2019

Which python version are you using? It may not be supporting f strings. Use python 3.6+

@Hemantr05
Copy link
Author

I use python 3.7 and yet it didn't work

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