dicom-contour
dicom-contour copied to clipboard
SyntaxError: invalid syntax
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?
Which python version are you using? It may not be supporting f strings. Use python 3.6+
I use python 3.7 and yet it didn't work