{"action":"created","comment":{"url":"https://api.github.com/repos/SciTools/iris/pulls/comments/33354696","id":33354696,"diff_hunk":"@@ -0,0 +1,80 @@\n+# (C) British Crown Copyright 2015, Met Office\n+#\n+# This file is part of Iris.\n+#\n+# Iris is free software: you can redistribute it and/or modify it under\n+# the terms of the GNU Lesser General Public License as published by the\n+# Free Software Foundation, either version 3 of the License, or\n+# (at your option) any later version.\n+#\n+# Iris is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU Lesser General Public License for more details.\n+#\n+# You should have received a copy of the GNU Lesser General Public License\n+# along with Iris.  If not, see <http://www.gnu.org/licenses/>.\n+\"\"\"Unit tests for the\n+:func:`iris.analysis._scipy_interpolate._RegularGridInterpolator` class.\"\"\"\n+\n+from __future__ import (absolute_import, division, print_function)\n+\n+# Import iris.tests first so that some things can be initialised before\n+# importing anything else.\n+import iris.tests as tests\n+\n+import mock\n+\n+import numpy as np\n+import iris\n+\n+from iris.analysis._scipy_interpolate import _RegularGridInterpolator\n+from scipy.sparse.csr import csr_matrix\n+import iris.tests.stock as stock\n+\n+\n+class Test(tests.IrisTest):\n+    def setUp(self):\n+        '''Load a source cube, then generate an interpolator instance and","path":"lib/iris/tests/unit/analysis/scipy_interpolate/test__RegularGridInterpolator.py","position":38,"original_position":38,"commit_id":"25ecf526c48202a9774ada792e0c5c0a5f26be83","original_commit_id":"25ecf526c48202a9774ada792e0c5c0a5f26be83","user":{"login":"ajdawson","id":390602,"avatar_url":"https://avatars.githubusercontent.com/u/390602?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdawson","html_url":"https://github.com/ajdawson","followers_url":"https://api.github.com/users/ajdawson/followers","following_url":"https://api.github.com/users/ajdawson/following{/other_user}","gists_url":"https://api.github.com/users/ajdawson/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdawson/subscriptions","organizations_url":"https://api.github.com/users/ajdawson/orgs","repos_url":"https://api.github.com/users/ajdawson/repos","events_url":"https://api.github.com/users/ajdawson/events{/privacy}","received_events_url":"https://api.github.com/users/ajdawson/received_events","type":"User","site_admin":false},"body":"I saw that, I mentioned it again to make sure it didn't get lost.","created_at":"2015-06-26T13:21:59Z","updated_at":"2015-06-26T13:21:59Z","html_url":"https://github.com/SciTools/iris/pull/1706#discussion_r33354696","pull_request_url":"https://api.github.com/repos/SciTools/iris/pulls/1706","_links":{"self":{"href":"https://api.github.com/repos/SciTools/iris/pulls/comments/33354696"},"html":{"href":"https://github.com/SciTools/iris/pull/1706#discussion_r33354696"},"pull_request":{"href":"https://api.github.com/repos/SciTools/iris/pulls/1706"}}},"pull_request":{"url":"https://api.github.com/repos/SciTools/iris/pulls/1706","id":38310811,"html_url":"https://github.com/SciTools/iris/pull/1706","diff_url":"https://github.com/SciTools/iris/pull/1706.diff","patch_url":"https://github.com/SciTools/iris/pull/1706.patch","issue_url":"https://api.github.com/repos/SciTools/iris/issues/1706","number":1706,"state":"open","locked":false,"title":"Rebase of Sparse-Matrix Interpolation from Decoupler Branch","user":{"login":"mo-g","id":10463172,"avatar_url":"https://avatars.githubusercontent.com/u/10463172?v=3","gravatar_id":"","url":"https://api.github.com/users/mo-g","html_url":"https://github.com/mo-g","followers_url":"https://api.github.com/users/mo-g/followers","following_url":"https://api.github.com/users/mo-g/following{/other_user}","gists_url":"https://api.github.com/users/mo-g/gists{/gist_id}","starred_url":"https://api.github.com/users/mo-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mo-g/subscriptions","organizations_url":"https://api.github.com/users/mo-g/orgs","repos_url":"https://api.github.com/users/mo-g/repos","events_url":"https://api.github.com/users/mo-g/events{/privacy}","received_events_url":"https://api.github.com/users/mo-g/received_events","type":"User","site_admin":false},"body":"Some tests and a small docstring change to the sparse-matrix changes implemented on the decoupler branch.","created_at":"2015-06-23T08:11:28Z","updated_at":"2015-06-26T13:21:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f958c30b47baf9e3d29d0ae958906d84e67057f4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SciTools/iris/pulls/1706/commits","review_comments_url":"https://api.github.com/repos/SciTools/iris/pulls/1706/comments","review_comment_url":"https://api.github.com/repos/SciTools/iris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SciTools/iris/issues/1706/comments","statuses_url":"https://api.github.com/repos/SciTools/iris/statuses/25ecf526c48202a9774ada792e0c5c0a5f26be83","head":{"label":"mo-g:rebase-decoupler-sparse","ref":"rebase-decoupler-sparse","sha":"25ecf526c48202a9774ada792e0c5c0a5f26be83","user":{"login":"mo-g","id":10463172,"avatar_url":"https://avatars.githubusercontent.com/u/10463172?v=3","gravatar_id":"","url":"https://api.github.com/users/mo-g","html_url":"https://github.com/mo-g","followers_url":"https://api.github.com/users/mo-g/followers","following_url":"https://api.github.com/users/mo-g/following{/other_user}","gists_url":"https://api.github.com/users/mo-g/gists{/gist_id}","starred_url":"https://api.github.com/users/mo-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mo-g/subscriptions","organizations_url":"https://api.github.com/users/mo-g/orgs","repos_url":"https://api.github.com/users/mo-g/repos","events_url":"https://api.github.com/users/mo-g/events{/privacy}","received_events_url":"https://api.github.com/users/mo-g/received_events","type":"User","site_admin":false},"repo":{"id":31591328,"name":"iris","full_name":"mo-g/iris","owner":{"login":"mo-g","id":10463172,"avatar_url":"https://avatars.githubusercontent.com/u/10463172?v=3","gravatar_id":"","url":"https://api.github.com/users/mo-g","html_url":"https://github.com/mo-g","followers_url":"https://api.github.com/users/mo-g/followers","following_url":"https://api.github.com/users/mo-g/following{/other_user}","gists_url":"https://api.github.com/users/mo-g/gists{/gist_id}","starred_url":"https://api.github.com/users/mo-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mo-g/subscriptions","organizations_url":"https://api.github.com/users/mo-g/orgs","repos_url":"https://api.github.com/users/mo-g/repos","events_url":"https://api.github.com/users/mo-g/events{/privacy}","received_events_url":"https://api.github.com/users/mo-g/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mo-g/iris","description":"A powerful, easy to use, and community-driven Python library for analysing and visualising meteorological and oceanographic data sets.","fork":true,"url":"https://api.github.com/repos/mo-g/iris","forks_url":"https://api.github.com/repos/mo-g/iris/forks","keys_url":"https://api.github.com/repos/mo-g/iris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mo-g/iris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mo-g/iris/teams","hooks_url":"https://api.github.com/repos/mo-g/iris/hooks","issue_events_url":"https://api.github.com/repos/mo-g/iris/issues/events{/number}","events_url":"https://api.github.com/repos/mo-g/iris/events","assignees_url":"https://api.github.com/repos/mo-g/iris/assignees{/user}","branches_url":"https://api.github.com/repos/mo-g/iris/branches{/branch}","tags_url":"https://api.github.com/repos/mo-g/iris/tags","blobs_url":"https://api.github.com/repos/mo-g/iris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mo-g/iris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mo-g/iris/git/refs{/sha}","trees_url":"https://api.github.com/repos/mo-g/iris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mo-g/iris/statuses/{sha}","languages_url":"https://api.github.com/repos/mo-g/iris/languages","stargazers_url":"https://api.github.com/repos/mo-g/iris/stargazers","contributors_url":"https://api.github.com/repos/mo-g/iris/contributors","subscribers_url":"https://api.github.com/repos/mo-g/iris/subscribers","subscription_url":"https://api.github.com/repos/mo-g/iris/subscription","commits_url":"https://api.github.com/repos/mo-g/iris/commits{/sha}","git_commits_url":"https://api.github.com/repos/mo-g/iris/git/commits{/sha}","comments_url":"https://api.github.com/repos/mo-g/iris/comments{/number}","issue_comment_url":"https://api.github.com/repos/mo-g/iris/issues/comments{/number}","contents_url":"https://api.github.com/repos/mo-g/iris/contents/{+path}","compare_url":"https://api.github.com/repos/mo-g/iris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mo-g/iris/merges","archive_url":"https://api.github.com/repos/mo-g/iris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mo-g/iris/downloads","issues_url":"https://api.github.com/repos/mo-g/iris/issues{/number}","pulls_url":"https://api.github.com/repos/mo-g/iris/pulls{/number}","milestones_url":"https://api.github.com/repos/mo-g/iris/milestones{/number}","notifications_url":"https://api.github.com/repos/mo-g/iris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mo-g/iris/labels{/name}","releases_url":"https://api.github.com/repos/mo-g/iris/releases{/id}","created_at":"2015-03-03T09:54:07Z","updated_at":"2015-04-01T09:17:10Z","pushed_at":"2015-06-26T12:43:17Z","git_url":"git://github.com/mo-g/iris.git","ssh_url":"git@github.com:mo-g/iris.git","clone_url":"https://github.com/mo-g/iris.git","svn_url":"https://github.com/mo-g/iris","homepage":"http://scitools.org.uk/iris/","size":96970,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SciTools:master","ref":"master","sha":"ee7f7c25d6e3faa3e948552423fa5054ccbcd9d6","user":{"login":"SciTools","id":1391487,"avatar_url":"https://avatars.githubusercontent.com/u/1391487?v=3","gravatar_id":"","url":"https://api.github.com/users/SciTools","html_url":"https://github.com/SciTools","followers_url":"https://api.github.com/users/SciTools/followers","following_url":"https://api.github.com/users/SciTools/following{/other_user}","gists_url":"https://api.github.com/users/SciTools/gists{/gist_id}","starred_url":"https://api.github.com/users/SciTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciTools/subscriptions","organizations_url":"https://api.github.com/users/SciTools/orgs","repos_url":"https://api.github.com/users/SciTools/repos","events_url":"https://api.github.com/users/SciTools/events{/privacy}","received_events_url":"https://api.github.com/users/SciTools/received_events","type":"Organization","site_admin":false},"repo":{"id":5312648,"name":"iris","full_name":"SciTools/iris","owner":{"login":"SciTools","id":1391487,"avatar_url":"https://avatars.githubusercontent.com/u/1391487?v=3","gravatar_id":"","url":"https://api.github.com/users/SciTools","html_url":"https://github.com/SciTools","followers_url":"https://api.github.com/users/SciTools/followers","following_url":"https://api.github.com/users/SciTools/following{/other_user}","gists_url":"https://api.github.com/users/SciTools/gists{/gist_id}","starred_url":"https://api.github.com/users/SciTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciTools/subscriptions","organizations_url":"https://api.github.com/users/SciTools/orgs","repos_url":"https://api.github.com/users/SciTools/repos","events_url":"https://api.github.com/users/SciTools/events{/privacy}","received_events_url":"https://api.github.com/users/SciTools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SciTools/iris","description":"A powerful, easy to use, and community-driven Python library for analysing and visualising meteorological and oceanographic data sets.","fork":false,"url":"https://api.github.com/repos/SciTools/iris","forks_url":"https://api.github.com/repos/SciTools/iris/forks","keys_url":"https://api.github.com/repos/SciTools/iris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SciTools/iris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SciTools/iris/teams","hooks_url":"https://api.github.com/repos/SciTools/iris/hooks","issue_events_url":"https://api.github.com/repos/SciTools/iris/issues/events{/number}","events_url":"https://api.github.com/repos/SciTools/iris/events","assignees_url":"https://api.github.com/repos/SciTools/iris/assignees{/user}","branches_url":"https://api.github.com/repos/SciTools/iris/branches{/branch}","tags_url":"https://api.github.com/repos/SciTools/iris/tags","blobs_url":"https://api.github.com/repos/SciTools/iris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SciTools/iris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SciTools/iris/git/refs{/sha}","trees_url":"https://api.github.com/repos/SciTools/iris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SciTools/iris/statuses/{sha}","languages_url":"https://api.github.com/repos/SciTools/iris/languages","stargazers_url":"https://api.github.com/repos/SciTools/iris/stargazers","contributors_url":"https://api.github.com/repos/SciTools/iris/contributors","subscribers_url":"https://api.github.com/repos/SciTools/iris/subscribers","subscription_url":"https://api.github.com/repos/SciTools/iris/subscription","commits_url":"https://api.github.com/repos/SciTools/iris/commits{/sha}","git_commits_url":"https://api.github.com/repos/SciTools/iris/git/commits{/sha}","comments_url":"https://api.github.com/repos/SciTools/iris/comments{/number}","issue_comment_url":"https://api.github.com/repos/SciTools/iris/issues/comments{/number}","contents_url":"https://api.github.com/repos/SciTools/iris/contents/{+path}","compare_url":"https://api.github.com/repos/SciTools/iris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SciTools/iris/merges","archive_url":"https://api.github.com/repos/SciTools/iris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SciTools/iris/downloads","issues_url":"https://api.github.com/repos/SciTools/iris/issues{/number}","pulls_url":"https://api.github.com/repos/SciTools/iris/pulls{/number}","milestones_url":"https://api.github.com/repos/SciTools/iris/milestones{/number}","notifications_url":"https://api.github.com/repos/SciTools/iris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SciTools/iris/labels{/name}","releases_url":"https://api.github.com/repos/SciTools/iris/releases{/id}","created_at":"2012-08-06T10:09:14Z","updated_at":"2015-06-19T05:52:44Z","pushed_at":"2015-06-26T12:43:19Z","git_url":"git://github.com/SciTools/iris.git","ssh_url":"git@github.com:SciTools/iris.git","clone_url":"https://github.com/SciTools/iris.git","svn_url":"https://github.com/SciTools/iris","homepage":"http://scitools.org.uk/iris/","size":147182,"stargazers_count":92,"watchers_count":92,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":166,"forks":72,"open_issues":166,"watchers":92,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SciTools/iris/pulls/1706"},"html":{"href":"https://github.com/SciTools/iris/pull/1706"},"issue":{"href":"https://api.github.com/repos/SciTools/iris/issues/1706"},"comments":{"href":"https://api.github.com/repos/SciTools/iris/issues/1706/comments"},"review_comments":{"href":"https://api.github.com/repos/SciTools/iris/pulls/1706/comments"},"review_comment":{"href":"https://api.github.com/repos/SciTools/iris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SciTools/iris/pulls/1706/commits"},"statuses":{"href":"https://api.github.com/repos/SciTools/iris/statuses/25ecf526c48202a9774ada792e0c5c0a5f26be83"}}}}