{"action":"created","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/3139","repository_url":"https://api.github.com/repos/mne-tools/mne-python","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3139/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3139/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3139/events","html_url":"https://github.com/mne-tools/mne-python/pull/3139","id":149234507,"number":3139,"title":"WIP: Unify copy in methods","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-18T18:34:20Z","updated_at":"2016-04-19T01:57:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/3139","html_url":"https://github.com/mne-tools/mne-python/pull/3139","diff_url":"https://github.com/mne-tools/mne-python/pull/3139.diff","patch_url":"https://github.com/mne-tools/mne-python/pull/3139.patch"},"body":"This PR aims to deprecate `copy=` parameters in methods (while leaving `copy` parameters alone in functions).\r\n\r\nCloses #3124.\r\n\r\nOne outstanding problem is the few methods (e.g., `raw.crop`) that have `copy=True` by default, users will have slightly awkward interactions with for a cycle. The behavior is currently:\r\n\r\n1. For current `copy=False` default functions:\r\n    1. If `copy=None` (default) or `copy=False`, interpret as `copy=False`\r\n    2. If `copy=True`, give `DeprecationWarning` and interpret as `copy=True`.\r\n2. For current `copy=True` default functions:\r\n    1. If `copy=None` (default) or `copy=True`, interpret as `copy=True` and give a `DeprecationWarning`.\r\n    2. If `copy=False`, interpret as `copy=False`.\r\n\r\nNot sure if this is the best solution but I can't think of anything better right now."},"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/211684616","html_url":"https://github.com/mne-tools/mne-python/pull/3139#issuecomment-211684616","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3139","id":211684616,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T01:57:21Z","updated_at":"2016-04-19T01:57:21Z","body":"\n[![Coverage Status](https://coveralls.io/builds/5837830/badge)](https://coveralls.io/builds/5837830)\n\nCoverage decreased (-0.1%) to 90.747% when pulling **5792dc6e55ea2461539d56f5568ac0fa103d79c1 on Eric89GXL:fix-copy** into **c30f617fa59f4c4d1270c34be631d7889ebf87a0 on mne-tools:master**.\n"}}