{"action":"created","issue":{"url":"https://api.github.com/repos/LABSN/mnefun/issues/127","repository_url":"https://api.github.com/repos/LABSN/mnefun","labels_url":"https://api.github.com/repos/LABSN/mnefun/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/LABSN/mnefun/issues/127/comments","events_url":"https://api.github.com/repos/LABSN/mnefun/issues/127/events","html_url":"https://github.com/LABSN/mnefun/issues/127","id":155599610,"number":127,"title":"File fetching issue","user":{"login":"kambysese","id":4381290,"avatar_url":"https://avatars.githubusercontent.com/u/4381290?v=3","gravatar_id":"","url":"https://api.github.com/users/kambysese","html_url":"https://github.com/kambysese","followers_url":"https://api.github.com/users/kambysese/followers","following_url":"https://api.github.com/users/kambysese/following{/other_user}","gists_url":"https://api.github.com/users/kambysese/gists{/gist_id}","starred_url":"https://api.github.com/users/kambysese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kambysese/subscriptions","organizations_url":"https://api.github.com/users/kambysese/orgs","repos_url":"https://api.github.com/users/kambysese/repos","events_url":"https://api.github.com/users/kambysese/events{/privacy}","received_events_url":"https://api.github.com/users/kambysese/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T20:56:37Z","updated_at":"2016-05-18T21:32:46Z","closed_at":null,"body":"@Eric89GXL I encountered this yesterday  on Alexis' MBP\r\n\r\n>  Traceback (most recent call last):\r\n>    File \"/Users/alexisbosseler/projects/social_exposure/analysis_social_exposure.py\", line 50, in <module>\r\n>      print_status=True\r\n>    File \"/Users/alexisbosseler/anaconda/lib/python2.7/site-packages/mnefun-0.1-py2.7.egg/mnefun/_mnefun.py\", line 570, in do_processing\r\n>      outs[ii] = func(p, subjects, run_indices)\r\n>    File \"/Users/alexisbosseler/anaconda/lib/python2.7/site-packages/mnefun-0.1-py2.7.egg/mnefun/_mnefun.py\", line 624, in fetch_raw_files\r\n>      move(op.join(raw_dir, fname), op.join(raw_dir, op.basename(fname)))\r\n>    File \"/Users/alexisbosseler/anaconda/lib/python2.7/shutil.py\", line 302, in move\r\n>      copy2(src, real_dst)\r\n>    File \"/Users/alexisbosseler/anaconda/lib/python2.7/shutil.py\", line 130, in copy2\r\n>      copyfile(src, dst)\r\n>    File \"/Users/alexisbosseler/anaconda/lib/python2.7/shutil.py\", line 82, in copyfile\r\n>      with open(src, 'rb') as fsrc:\r\n> IOError: [Errno 2] No such file or directory: u'/Users/alexisbosseler/Documents/social_exposure/adim_aaron/raw_fif/dim_aaron/raw_fif/adim_aaron_1_raw.fif'\r\n\r\nI don't have much time to debug this at the moment, I was hoping you might have a idea where the failure is, or why? I am not sure why the routine is lopping off the first letter of the directory name(s) i.e., `adim_aaron` to `dim_aaron`, when trying to do housekeeping after fetching files from remote.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/LABSN/mnefun/issues/comments/220164795","html_url":"https://github.com/LABSN/mnefun/issues/127#issuecomment-220164795","issue_url":"https://api.github.com/repos/LABSN/mnefun/issues/127","id":220164795,"user":{"login":"Eric89GXL","id":2365790,"avatar_url":"https://avatars.githubusercontent.com/u/2365790?v=3","gravatar_id":"","url":"https://api.github.com/users/Eric89GXL","html_url":"https://github.com/Eric89GXL","followers_url":"https://api.github.com/users/Eric89GXL/followers","following_url":"https://api.github.com/users/Eric89GXL/following{/other_user}","gists_url":"https://api.github.com/users/Eric89GXL/gists{/gist_id}","starred_url":"https://api.github.com/users/Eric89GXL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eric89GXL/subscriptions","organizations_url":"https://api.github.com/users/Eric89GXL/orgs","repos_url":"https://api.github.com/users/Eric89GXL/repos","events_url":"https://api.github.com/users/Eric89GXL/events{/privacy}","received_events_url":"https://api.github.com/users/Eric89GXL/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T21:32:46Z","updated_at":"2016-05-18T21:32:46Z","body":"The easiest thing to do would be to use `import pdb; pdb.pm()` and traverse up `u` 3 (or 4?) levels so you can look at what's happening in `fetch_raw_files` with e.g. `p raw_dir`, `p fname`, and `p op.basename(fname)`"}}