I have the following error when I execute the code:
File "D:/Escritorio/ANDREA_TFM/CODIGO1_PRUEBA/lidc_data_to_nifti.py", line 371
global path_to_characteristics
^
SyntaxError: name 'path_to_characteristics' is assigned to before global declaration
My paths:
Path to the command lines tools of MITK Phenotyping
I have the following error when I execute the code:
File "D:/Escritorio/ANDREA_TFM/CODIGO1_PRUEBA/lidc_data_to_nifti.py", line 371 global path_to_characteristics ^ SyntaxError: name 'path_to_characteristics' is assigned to before global declaration
My paths:
Path to the command lines tools of MITK Phenotyping
path_to_executables=r"D:\Documentos\MITK 2016.11.99_rcadabe\bin"
Path to the folder that contains the LIDC-IDRI DICOM files
path_to_dicoms = r"D:\Escritorio\ANDREA_TFM\LIDC-IDRI"
Path to the folder that contains the LIDC-IDRI XML files
path_to_xmls= r"D:\Escritorio\ANDREA_TFM\tcia-lidc-xml"
path_to_xmls= r"P:\Goetz\Datenkollektive\Lungendaten\Nodules_LIDC_IDRI\XML2"
Output path where the generated NRRD and NIFTI files will be saved
path_to_nrrds = r"D:\Escritorio\ANDREA_TFM\CODIGO1_PRUEBA"
Output path where the genreated Planar Figures will be saved
path_to_planars= r"D:\Escritorio\ANDREA_TFM\CODIGO1_PRUEBA"
Output path to the CSV-file that will contain the nodule characteristics. An existing will be appended
path_to_characteristics=r"D:\Escritorio\ANDREA_TFM\CODIGO1_PRUEBA\characteristics_2.csv"
Ouput path to an error file where errors will be logged. An existing file will be appended.
path_to_error_file=r"D:\Escritorio\ANDREA_TFM\CODIGO1_PRUEBA\conversion_error_2.txt"
Could someone help me with this?