dicom-contour icon indicating copy to clipboard operation
dicom-contour copied to clipboard

SyntaxError: invalid syntax

Open Hemantr05 opened this issue 5 years ago • 2 comments

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?

Hemantr05 avatar Apr 18 '19 05:04 Hemantr05

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

KeremTurgutlu avatar Aug 25 '19 15:08 KeremTurgutlu

I use python 3.7 and yet it didn't work

Hemantr05 avatar Aug 27 '19 17:08 Hemantr05