{"action":"closed","number":972,"pull_request":{"url":"https://api.github.com/repos/pandegroup/openmm/pulls/972","id":38069381,"html_url":"https://github.com/pandegroup/openmm/pull/972","diff_url":"https://github.com/pandegroup/openmm/pull/972.diff","patch_url":"https://github.com/pandegroup/openmm/pull/972.patch","issue_url":"https://api.github.com/repos/pandegroup/openmm/issues/972","number":972,"state":"closed","locked":false,"title":"A large number of unit cleanups and fix numpy wart","user":{"login":"swails","id":779022,"avatar_url":"https://avatars.githubusercontent.com/u/779022?v=3","gravatar_id":"","url":"https://api.github.com/users/swails","html_url":"https://github.com/swails","followers_url":"https://api.github.com/users/swails/followers","following_url":"https://api.github.com/users/swails/following{/other_user}","gists_url":"https://api.github.com/users/swails/gists{/gist_id}","starred_url":"https://api.github.com/users/swails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swails/subscriptions","organizations_url":"https://api.github.com/users/swails/orgs","repos_url":"https://api.github.com/users/swails/repos","events_url":"https://api.github.com/users/swails/events{/privacy}","received_events_url":"https://api.github.com/users/swails/received_events","type":"User","site_admin":false},"body":"The main thing that's done here is that numpy arrays can be given units via the\r\n`*` operator, rather than relying on the Quantity constructor\r\n\r\ne.g.,\r\n\r\n```Python\r\n>>> import numpy as np\r\n>>> np.zeros(10) * u.angstroms\r\nQuantity(value=array([ 0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.]), unit=angstrom)\r\n```\r\n\r\nyay!\r\n\r\nStill needs a test","created_at":"2015-06-19T01:16:52Z","updated_at":"2015-06-19T22:22:42Z","closed_at":"2015-06-19T22:22:42Z","merged_at":"2015-06-19T22:22:42Z","merge_commit_sha":"1475d39e871f43f7eeb40d248f52511db8a880dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pandegroup/openmm/pulls/972/commits","review_comments_url":"https://api.github.com/repos/pandegroup/openmm/pulls/972/comments","review_comment_url":"https://api.github.com/repos/pandegroup/openmm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pandegroup/openmm/issues/972/comments","statuses_url":"https://api.github.com/repos/pandegroup/openmm/statuses/d05b7075929c59590909f8595283e6b737c189bf","head":{"label":"swails:unit","ref":"unit","sha":"d05b7075929c59590909f8595283e6b737c189bf","user":{"login":"swails","id":779022,"avatar_url":"https://avatars.githubusercontent.com/u/779022?v=3","gravatar_id":"","url":"https://api.github.com/users/swails","html_url":"https://github.com/swails","followers_url":"https://api.github.com/users/swails/followers","following_url":"https://api.github.com/users/swails/following{/other_user}","gists_url":"https://api.github.com/users/swails/gists{/gist_id}","starred_url":"https://api.github.com/users/swails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swails/subscriptions","organizations_url":"https://api.github.com/users/swails/orgs","repos_url":"https://api.github.com/users/swails/repos","events_url":"https://api.github.com/users/swails/events{/privacy}","received_events_url":"https://api.github.com/users/swails/received_events","type":"User","site_admin":false},"repo":{"id":13570250,"name":"openmm","full_name":"swails/openmm","owner":{"login":"swails","id":779022,"avatar_url":"https://avatars.githubusercontent.com/u/779022?v=3","gravatar_id":"","url":"https://api.github.com/users/swails","html_url":"https://github.com/swails","followers_url":"https://api.github.com/users/swails/followers","following_url":"https://api.github.com/users/swails/following{/other_user}","gists_url":"https://api.github.com/users/swails/gists{/gist_id}","starred_url":"https://api.github.com/users/swails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swails/subscriptions","organizations_url":"https://api.github.com/users/swails/orgs","repos_url":"https://api.github.com/users/swails/repos","events_url":"https://api.github.com/users/swails/events{/privacy}","received_events_url":"https://api.github.com/users/swails/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swails/openmm","description":"OpenMM is a toolkit for molecular simulation using high performance GPU code. ","fork":true,"url":"https://api.github.com/repos/swails/openmm","forks_url":"https://api.github.com/repos/swails/openmm/forks","keys_url":"https://api.github.com/repos/swails/openmm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swails/openmm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swails/openmm/teams","hooks_url":"https://api.github.com/repos/swails/openmm/hooks","issue_events_url":"https://api.github.com/repos/swails/openmm/issues/events{/number}","events_url":"https://api.github.com/repos/swails/openmm/events","assignees_url":"https://api.github.com/repos/swails/openmm/assignees{/user}","branches_url":"https://api.github.com/repos/swails/openmm/branches{/branch}","tags_url":"https://api.github.com/repos/swails/openmm/tags","blobs_url":"https://api.github.com/repos/swails/openmm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swails/openmm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swails/openmm/git/refs{/sha}","trees_url":"https://api.github.com/repos/swails/openmm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swails/openmm/statuses/{sha}","languages_url":"https://api.github.com/repos/swails/openmm/languages","stargazers_url":"https://api.github.com/repos/swails/openmm/stargazers","contributors_url":"https://api.github.com/repos/swails/openmm/contributors","subscribers_url":"https://api.github.com/repos/swails/openmm/subscribers","subscription_url":"https://api.github.com/repos/swails/openmm/subscription","commits_url":"https://api.github.com/repos/swails/openmm/commits{/sha}","git_commits_url":"https://api.github.com/repos/swails/openmm/git/commits{/sha}","comments_url":"https://api.github.com/repos/swails/openmm/comments{/number}","issue_comment_url":"https://api.github.com/repos/swails/openmm/issues/comments{/number}","contents_url":"https://api.github.com/repos/swails/openmm/contents/{+path}","compare_url":"https://api.github.com/repos/swails/openmm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swails/openmm/merges","archive_url":"https://api.github.com/repos/swails/openmm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swails/openmm/downloads","issues_url":"https://api.github.com/repos/swails/openmm/issues{/number}","pulls_url":"https://api.github.com/repos/swails/openmm/pulls{/number}","milestones_url":"https://api.github.com/repos/swails/openmm/milestones{/number}","notifications_url":"https://api.github.com/repos/swails/openmm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swails/openmm/labels{/name}","releases_url":"https://api.github.com/repos/swails/openmm/releases{/id}","created_at":"2013-10-14T19:00:55Z","updated_at":"2015-05-07T17:47:07Z","pushed_at":"2015-06-19T19:22:24Z","git_url":"git://github.com/swails/openmm.git","ssh_url":"git@github.com:swails/openmm.git","clone_url":"https://github.com/swails/openmm.git","svn_url":"https://github.com/swails/openmm","homepage":null,"size":98238,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"pandegroup:master","ref":"master","sha":"71b56ad59a77b0154951c1a78b75141bffc54633","user":{"login":"pandegroup","id":2250873,"avatar_url":"https://avatars.githubusercontent.com/u/2250873?v=3","gravatar_id":"","url":"https://api.github.com/users/pandegroup","html_url":"https://github.com/pandegroup","followers_url":"https://api.github.com/users/pandegroup/followers","following_url":"https://api.github.com/users/pandegroup/following{/other_user}","gists_url":"https://api.github.com/users/pandegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/pandegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandegroup/subscriptions","organizations_url":"https://api.github.com/users/pandegroup/orgs","repos_url":"https://api.github.com/users/pandegroup/repos","events_url":"https://api.github.com/users/pandegroup/events{/privacy}","received_events_url":"https://api.github.com/users/pandegroup/received_events","type":"Organization","site_admin":false},"repo":{"id":10178188,"name":"openmm","full_name":"pandegroup/openmm","owner":{"login":"pandegroup","id":2250873,"avatar_url":"https://avatars.githubusercontent.com/u/2250873?v=3","gravatar_id":"","url":"https://api.github.com/users/pandegroup","html_url":"https://github.com/pandegroup","followers_url":"https://api.github.com/users/pandegroup/followers","following_url":"https://api.github.com/users/pandegroup/following{/other_user}","gists_url":"https://api.github.com/users/pandegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/pandegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandegroup/subscriptions","organizations_url":"https://api.github.com/users/pandegroup/orgs","repos_url":"https://api.github.com/users/pandegroup/repos","events_url":"https://api.github.com/users/pandegroup/events{/privacy}","received_events_url":"https://api.github.com/users/pandegroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pandegroup/openmm","description":"OpenMM is a toolkit for molecular simulation using high performance GPU code. ","fork":false,"url":"https://api.github.com/repos/pandegroup/openmm","forks_url":"https://api.github.com/repos/pandegroup/openmm/forks","keys_url":"https://api.github.com/repos/pandegroup/openmm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pandegroup/openmm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pandegroup/openmm/teams","hooks_url":"https://api.github.com/repos/pandegroup/openmm/hooks","issue_events_url":"https://api.github.com/repos/pandegroup/openmm/issues/events{/number}","events_url":"https://api.github.com/repos/pandegroup/openmm/events","assignees_url":"https://api.github.com/repos/pandegroup/openmm/assignees{/user}","branches_url":"https://api.github.com/repos/pandegroup/openmm/branches{/branch}","tags_url":"https://api.github.com/repos/pandegroup/openmm/tags","blobs_url":"https://api.github.com/repos/pandegroup/openmm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pandegroup/openmm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pandegroup/openmm/git/refs{/sha}","trees_url":"https://api.github.com/repos/pandegroup/openmm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pandegroup/openmm/statuses/{sha}","languages_url":"https://api.github.com/repos/pandegroup/openmm/languages","stargazers_url":"https://api.github.com/repos/pandegroup/openmm/stargazers","contributors_url":"https://api.github.com/repos/pandegroup/openmm/contributors","subscribers_url":"https://api.github.com/repos/pandegroup/openmm/subscribers","subscription_url":"https://api.github.com/repos/pandegroup/openmm/subscription","commits_url":"https://api.github.com/repos/pandegroup/openmm/commits{/sha}","git_commits_url":"https://api.github.com/repos/pandegroup/openmm/git/commits{/sha}","comments_url":"https://api.github.com/repos/pandegroup/openmm/comments{/number}","issue_comment_url":"https://api.github.com/repos/pandegroup/openmm/issues/comments{/number}","contents_url":"https://api.github.com/repos/pandegroup/openmm/contents/{+path}","compare_url":"https://api.github.com/repos/pandegroup/openmm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pandegroup/openmm/merges","archive_url":"https://api.github.com/repos/pandegroup/openmm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pandegroup/openmm/downloads","issues_url":"https://api.github.com/repos/pandegroup/openmm/issues{/number}","pulls_url":"https://api.github.com/repos/pandegroup/openmm/pulls{/number}","milestones_url":"https://api.github.com/repos/pandegroup/openmm/milestones{/number}","notifications_url":"https://api.github.com/repos/pandegroup/openmm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pandegroup/openmm/labels{/name}","releases_url":"https://api.github.com/repos/pandegroup/openmm/releases{/id}","created_at":"2013-05-20T17:42:52Z","updated_at":"2015-06-16T15:31:21Z","pushed_at":"2015-06-19T22:22:42Z","git_url":"git://github.com/pandegroup/openmm.git","ssh_url":"git@github.com:pandegroup/openmm.git","clone_url":"https://github.com/pandegroup/openmm.git","svn_url":"https://github.com/pandegroup/openmm","homepage":null,"size":103741,"stargazers_count":86,"watchers_count":86,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":131,"forks":52,"open_issues":131,"watchers":86,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pandegroup/openmm/pulls/972"},"html":{"href":"https://github.com/pandegroup/openmm/pull/972"},"issue":{"href":"https://api.github.com/repos/pandegroup/openmm/issues/972"},"comments":{"href":"https://api.github.com/repos/pandegroup/openmm/issues/972/comments"},"review_comments":{"href":"https://api.github.com/repos/pandegroup/openmm/pulls/972/comments"},"review_comment":{"href":"https://api.github.com/repos/pandegroup/openmm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pandegroup/openmm/pulls/972/commits"},"statuses":{"href":"https://api.github.com/repos/pandegroup/openmm/statuses/d05b7075929c59590909f8595283e6b737c189bf"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"peastman","id":4379786,"avatar_url":"https://avatars.githubusercontent.com/u/4379786?v=3","gravatar_id":"","url":"https://api.github.com/users/peastman","html_url":"https://github.com/peastman","followers_url":"https://api.github.com/users/peastman/followers","following_url":"https://api.github.com/users/peastman/following{/other_user}","gists_url":"https://api.github.com/users/peastman/gists{/gist_id}","starred_url":"https://api.github.com/users/peastman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peastman/subscriptions","organizations_url":"https://api.github.com/users/peastman/orgs","repos_url":"https://api.github.com/users/peastman/repos","events_url":"https://api.github.com/users/peastman/events{/privacy}","received_events_url":"https://api.github.com/users/peastman/received_events","type":"User","site_admin":false},"comments":14,"review_comments":0,"commits":5,"additions":100,"deletions":88,"changed_files":13}}