{"action":"created","issue":{"url":"https://api.github.com/repos/nipy/heudiconv/issues/161","repository_url":"https://api.github.com/repos/nipy/heudiconv","labels_url":"https://api.github.com/repos/nipy/heudiconv/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/nipy/heudiconv/issues/161/comments","events_url":"https://api.github.com/repos/nipy/heudiconv/issues/161/events","html_url":"https://github.com/nipy/heudiconv/issues/161","id":299231024,"number":161,"title":"Upcoming datalad 0.10 will not be able to set metadata","user":{"login":"yarikoptic","id":39889,"avatar_url":"https://avatars3.githubusercontent.com/u/39889?v=4","gravatar_id":"","url":"https://api.github.com/users/yarikoptic","html_url":"https://github.com/yarikoptic","followers_url":"https://api.github.com/users/yarikoptic/followers","following_url":"https://api.github.com/users/yarikoptic/following{/other_user}","gists_url":"https://api.github.com/users/yarikoptic/gists{/gist_id}","starred_url":"https://api.github.com/users/yarikoptic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarikoptic/subscriptions","organizations_url":"https://api.github.com/users/yarikoptic/orgs","repos_url":"https://api.github.com/users/yarikoptic/repos","events_url":"https://api.github.com/users/yarikoptic/events{/privacy}","received_events_url":"https://api.github.com/users/yarikoptic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/nipy/heudiconv/milestones/2","html_url":"https://github.com/nipy/heudiconv/milestone/2","labels_url":"https://api.github.com/repos/nipy/heudiconv/milestones/2/labels","id":3105211,"number":2,"title":"0.5","description":"A new shiny release with all the goodness of the refactoring by @mgxd.  Someone yet to summarize everything in a changelog","creator":{"login":"yarikoptic","id":39889,"avatar_url":"https://avatars3.githubusercontent.com/u/39889?v=4","gravatar_id":"","url":"https://api.github.com/users/yarikoptic","html_url":"https://github.com/yarikoptic","followers_url":"https://api.github.com/users/yarikoptic/followers","following_url":"https://api.github.com/users/yarikoptic/following{/other_user}","gists_url":"https://api.github.com/users/yarikoptic/gists{/gist_id}","starred_url":"https://api.github.com/users/yarikoptic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarikoptic/subscriptions","organizations_url":"https://api.github.com/users/yarikoptic/orgs","repos_url":"https://api.github.com/users/yarikoptic/repos","events_url":"https://api.github.com/users/yarikoptic/events{/privacy}","received_events_url":"https://api.github.com/users/yarikoptic/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":19,"state":"open","created_at":"2018-02-10T22:38:41Z","updated_at":"2018-02-22T05:55:01Z","due_on":"2018-02-13T08:00:00Z","closed_at":null},"comments":1,"created_at":"2018-02-22T05:54:51Z","updated_at":"2018-02-22T15:01:37Z","closed_at":null,"author_association":"OWNER","body":"With @mih we reached an agreement to retract ability to set metadata associated with the files, so currently heudiconv would break if ran with master of datalad:\r\n```\r\nINFO   : Creating a new annex repo at /home/yoh/picts/mris/dartmouth-phantoms/OUTPUT/Halchenko/Yarik/950_bids_test4/.heudiconv\r\nTraceback (most recent call last):                                                                       \r\n  File \"/home/yoh/picts/mris/heudiconv/venvs/dev/bin/heudiconv\", line 11, in <module>\r\n    load_entry_point('heudiconv==0.4', 'console_scripts', 'heudiconv')()\r\n  File \"/home/yoh/picts/mris/heudiconv/venvs/dev/local/lib/python2.7/site-packages/heudiconv/cli/run.py\", line 120, in main\r\n    process_args(args)\r\n  File \"/home/yoh/picts/mris/heudiconv/venvs/dev/local/lib/python2.7/site-packages/heudiconv/cli/run.py\", line 343, in process_args\r\n    add_to_datalad(outdir, study_outdir, msg, args.bids)\r\n  File \"/home/yoh/picts/mris/heudiconv/venvs/dev/local/lib/python2.7/site-packages/heudiconv/external/dlad.py\", line 115, in add_to_datalad\r\n    mark_sensitive(ds, 'sourcedata')\r\n  File \"/home/yoh/picts/mris/heudiconv/venvs/dev/local/lib/python2.7/site-packages/heudiconv/utils.py\", line 144, in mark_sensitive\r\n    ds.metadata(recursive=True, **sens_kwargs)\r\n  File \"/home/yoh/picts/mris/heudiconv/venvs/dev/local/lib/python2.7/site-packages/datalad/distribution/dataset.py\", line 437, in apply_func\r\n    return f(**kwargs)\r\n  File \"/home/yoh/picts/mris/heudiconv/venvs/dev/local/lib/python2.7/site-packages/datalad/interface/utils.py\", line 463, in eval_func\r\n    return return_func(generator_func)(*args, **kwargs)\r\n  File \"/home/yoh/picts/mris/heudiconv/venvs/dev/local/lib/python2.7/site-packages/datalad/interface/utils.py\", line 451, in return_func\r\n    results = list(results)\r\n  File \"/home/yoh/picts/mris/heudiconv/venvs/dev/local/lib/python2.7/site-packages/datalad/interface/utils.py\", line 405, in generator_func\r\n    wrapped(*_args, **_kwargs),\r\nTypeError: __call__() got an unexpected keyword argument 'init'\r\n```\r\nso fix is needed to manipulate git-annex metada directly via `AnnexRepo.set_metadata` while avoiding `datalad.api.metadata` call"},"comment":{"url":"https://api.github.com/repos/nipy/heudiconv/issues/comments/367707964","html_url":"https://github.com/nipy/heudiconv/issues/161#issuecomment-367707964","issue_url":"https://api.github.com/repos/nipy/heudiconv/issues/161","id":367707964,"user":{"login":"yarikoptic","id":39889,"avatar_url":"https://avatars3.githubusercontent.com/u/39889?v=4","gravatar_id":"","url":"https://api.github.com/users/yarikoptic","html_url":"https://github.com/yarikoptic","followers_url":"https://api.github.com/users/yarikoptic/followers","following_url":"https://api.github.com/users/yarikoptic/following{/other_user}","gists_url":"https://api.github.com/users/yarikoptic/gists{/gist_id}","starred_url":"https://api.github.com/users/yarikoptic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarikoptic/subscriptions","organizations_url":"https://api.github.com/users/yarikoptic/orgs","repos_url":"https://api.github.com/users/yarikoptic/repos","events_url":"https://api.github.com/users/yarikoptic/events{/privacy}","received_events_url":"https://api.github.com/users/yarikoptic/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T15:01:37Z","updated_at":"2018-02-22T15:01:37Z","author_association":"OWNER","body":"Here specifically it is just a matter of replacing one datalad call with another one. Nothing will need to be set manually, nothing will change to the user.\r\n\r\nOr are your asking more generic datalad question? Please give use case"}}
{"actor":{"display_login":"yarikoptic"}}