{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/6684","labels_url":"https://api.github.com/repos/numpy/numpy/issues/6684/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/6684/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/6684/events","html_url":"https://github.com/numpy/numpy/pull/6684","id":116849201,"number":6684,"title":"BUG: regression in fortran array views due to relaxed strides","user":{"login":"ahaldane","id":9040124,"avatar_url":"https://avatars.githubusercontent.com/u/9040124?v=3","gravatar_id":"","url":"https://api.github.com/users/ahaldane","html_url":"https://github.com/ahaldane","followers_url":"https://api.github.com/users/ahaldane/followers","following_url":"https://api.github.com/users/ahaldane/following{/other_user}","gists_url":"https://api.github.com/users/ahaldane/gists{/gist_id}","starred_url":"https://api.github.com/users/ahaldane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahaldane/subscriptions","organizations_url":"https://api.github.com/users/ahaldane/orgs","repos_url":"https://api.github.com/users/ahaldane/repos","events_url":"https://api.github.com/users/ahaldane/events{/privacy}","received_events_url":"https://api.github.com/users/ahaldane/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.core","name":"component: numpy.core","color":"ff0000"},{"url":"https://api.github.com/repos/numpy/numpy/labels/Regression","name":"Regression","color":"7F0000"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/numpy/numpy/milestones/39","html_url":"https://github.com/numpy/numpy/milestones/1.10.2%20release","labels_url":"https://api.github.com/repos/numpy/numpy/milestones/39/labels","id":1353924,"number":39,"title":"1.10.2 release","description":"","creator":{"login":"charris","id":77272,"avatar_url":"https://avatars.githubusercontent.com/u/77272?v=3","gravatar_id":"","url":"https://api.github.com/users/charris","html_url":"https://github.com/charris","followers_url":"https://api.github.com/users/charris/followers","following_url":"https://api.github.com/users/charris/following{/other_user}","gists_url":"https://api.github.com/users/charris/gists{/gist_id}","starred_url":"https://api.github.com/users/charris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charris/subscriptions","organizations_url":"https://api.github.com/users/charris/orgs","repos_url":"https://api.github.com/users/charris/repos","events_url":"https://api.github.com/users/charris/events{/privacy}","received_events_url":"https://api.github.com/users/charris/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":63,"state":"open","created_at":"2015-10-13T19:48:01Z","updated_at":"2015-11-24T15:57:00Z","due_on":null,"closed_at":null},"comments":35,"created_at":"2015-11-13T20:49:15Z","updated_at":"2015-11-24T16:18:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/numpy/numpy/pulls/6684","html_url":"https://github.com/numpy/numpy/pull/6684","diff_url":"https://github.com/numpy/numpy/pull/6684.diff","patch_url":"https://github.com/numpy/numpy/pull/6684.patch"},"body":"This fixes #6678 so that views of fortran arrays with size-1 dims can be viewed as larger dtypes. It is backward compatible and keeps relaxed strides in place. \r\n\r\nAt this point it is just to get an idea what it might look like. I am suggesting that for 1.10.2 we might use this PR but maybe with an extra deprecation warning (still to be decided) for anyone attempting such a view. Then in 1.11 we could implement the replacement functionality (eg, an 'order' keyword for views)."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/159319384","html_url":"https://github.com/numpy/numpy/pull/6684#issuecomment-159319384","issue_url":"https://api.github.com/repos/numpy/numpy/issues/6684","id":159319384,"user":{"login":"charris","id":77272,"avatar_url":"https://avatars.githubusercontent.com/u/77272?v=3","gravatar_id":"","url":"https://api.github.com/users/charris","html_url":"https://github.com/charris","followers_url":"https://api.github.com/users/charris/followers","following_url":"https://api.github.com/users/charris/following{/other_user}","gists_url":"https://api.github.com/users/charris/gists{/gist_id}","starred_url":"https://api.github.com/users/charris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charris/subscriptions","organizations_url":"https://api.github.com/users/charris/orgs","repos_url":"https://api.github.com/users/charris/repos","events_url":"https://api.github.com/users/charris/events{/privacy}","received_events_url":"https://api.github.com/users/charris/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T16:18:34Z","updated_at":"2015-11-24T16:18:34Z","body":"OK, so for 1.10.x I will change the default. Meanwhile, @ahaldane I think it would be good to separate out the new tests and get them into master. A boolean like\r\n```\r\nis_relaxed_strides = np.ones((2, 1), order='C').flags.f_contiguous\r\n```\r\nmight be useful there. Could probably be put into the `numpy/__init__.py` file so everyone could use it."}}