{"action":"closed","issue":{"url":"https://api.github.com/repos/INCF/pybids/issues/153","repository_url":"https://api.github.com/repos/INCF/pybids","labels_url":"https://api.github.com/repos/INCF/pybids/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/INCF/pybids/issues/153/comments","events_url":"https://api.github.com/repos/INCF/pybids/issues/153/events","html_url":"https://github.com/INCF/pybids/issues/153","id":309157235,"node_id":"MDU6SXNzdWUzMDkxNTcyMzU=","number":153,"title":"BIDS validation on BIDSLayout initialization","user":{"login":"tyarkoni","id":303932,"node_id":"MDQ6VXNlcjMwMzkzMg==","avatar_url":"https://avatars2.githubusercontent.com/u/303932?v=4","gravatar_id":"","url":"https://api.github.com/users/tyarkoni","html_url":"https://github.com/tyarkoni","followers_url":"https://api.github.com/users/tyarkoni/followers","following_url":"https://api.github.com/users/tyarkoni/following{/other_user}","gists_url":"https://api.github.com/users/tyarkoni/gists{/gist_id}","starred_url":"https://api.github.com/users/tyarkoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyarkoni/subscriptions","organizations_url":"https://api.github.com/users/tyarkoni/orgs","repos_url":"https://api.github.com/users/tyarkoni/repos","events_url":"https://api.github.com/users/tyarkoni/events{/privacy}","received_events_url":"https://api.github.com/users/tyarkoni/received_events","type":"User","site_admin":false},"labels":[{"id":405475622,"node_id":"MDU6TGFiZWw0MDU0NzU2MjI=","url":"https://api.github.com/repos/INCF/pybids/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-27T22:31:51Z","updated_at":"2018-09-14T15:46:08Z","closed_at":"2018-09-14T15:46:08Z","author_association":"COLLABORATOR","body":"Right now BIDS validation is disabled by default when initializing a new `BIDSLayout`, but `validate` can be set to `True`, in which case invalid files are silently dropped. I don't know if this gives us enough flexibility. I'm thinking we could potentially change the `validate` argument to accept one of the values `None`, `'drop'`, `'warn'`, or `'error'`, where the first two options are the equivalent of the current `False` and `True`, and the latter two options don't drop any files from the index, but raise either a warning or an exception, respectively, if invalid files are encountered. Thoughts?"}}
{"actor":{"display_login":"tyarkoni"}}