LKINSEY / MetaDataGUI

Fast, easy UI that allows user to transfer raw experimental data and associated metadata to AIND cloud services after experiment is run
0 stars 0 forks source link

missing folder crashes the GUI #14

Open rozmar opened 2 weeks ago

rozmar commented 2 weeks ago

when I transfer data, but give the wrong mouse ID or date, it crashes the GUI. there should be an error message instead

  File "C:\github\MetaDataGUI\UI\metaDataWorker.py", line 224, in run
    shutil.copytree(sourceDir, destinationDir)
  File "C:\Users\ScanImage\miniconda3\envs\codeocean\Lib\shutil.py", line 571, in copytree
    with os.scandir(src) as itr:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'F:/BCI//AIP01/110624'
LKINSEY commented 1 week ago

will make a flag that lets user know there is an error with logged mouse data