populse / populse_mia

Multiparametric Image Analysis
Other
10 stars 9 forks source link

Downloading multiple files in a project #179

Closed saldanhag closed 3 years ago

saldanhag commented 4 years ago

Describe the bug Loading a second file by using the Add a document fontion (green cross), populse_mia crash and return a KeyError with the name of the File.

Generated error

Traceback (most recent call last):
  File "/home/saldanhg/Bureau/Stage/populse_mia/python/populse_mia/user_interface/pop_ups.py", line 754, in save_path
    self.databrowser.table_data.add_columns()
  File "/home/saldanhg/Bureau/Stage/populse_mia/python/populse_mia/user_interface/data_browser/data_browser.py", line 931, in add_columns
    self.update_colors()
  File "/home/saldanhg/Bureau/Stage/populse_mia/python/populse_mia/user_interface/data_browser/data_browser.py", line 2202, in update_colors
    row = table_scans[scan[tags[0]]]
KeyError: 'data/downloaded_data/swralej170316-IRMFonct.+perfusion-2016-03-17083444-1-BOLD_CVR_7_53sl_ModeratePNSSENSE-FEEPI-001212.000.nii'

To Reproduce Load two different files with the green cross in data Browser

Desktop (please complete the following information): Linux gpi-HP-Compaq-8200-Elite-CMT-PC 4.15.0-88-generic #88~16.04.1-Ubuntu SMP Wed Feb 12 04:19:15 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Populse_mia and populse_db current version (2020.08.12)