{"action":"created","comment":{"url":"https://api.github.com/repos/pyne/pyne/pulls/comments/41320534","id":41320534,"diff_hunk":"@@ -165,6 +165,25 @@ def test_rtflux_raises():\n     with assert_raises(ValueError):\n         rt.to_mesh(m, \"flux\")\n \n-def test_atflux():\n-    rt = Rtflux(\"files_test_cccc/atflux_3D\")\n-    assert_equal(rt.adjoint, True)\n+def test_atflux_adjoint():\n+    at = Atflux(\"files_test_cccc/atflux_3D\")\n+    assert_equal(at.adjoint, True)\n+\n+def test_atflux_eng_order():\n+    \"\"\"Ensure the energy order is read in reverse for atflux file.\"\"\"\n+    if not HAVE_PYTAPS:\n+        raise SkipTest\n+    from pyne.mesh import Mesh, IMeshTag\n+\n+    # This file is created with: source=1 174R 0 0 1 40R 0\n+    # So only the 2 highest energy photon groups and the 1 highest energy\n+    # neutron group should have non-zero fluxes.\n+    at = Atflux(\"files_test_cccc/atflux_eng_order\")\n+    sc = [np.linspace(-100, 100, 5),\n+          np.linspace(-100, 100, 5),\n+          np.linspace(0, 330, 5)]\n+    m = Mesh(structured=True, structured_coords=sc, mats=None)\n+    at.to_mesh(m, \"flux\")\n+    m.flux = IMeshTag(217, float)\n+    assert(np.allclose(m.flux[0], np.array([0]*40 + [57.3204927667, 1.16690395827] + [0]*174 + [14.2312186922])))","path":"tests/test_cccc.py","position":null,"original_position":36,"commit_id":"2f41bd5955f4655cf8c3c24517a0cfab62e0a0a2","original_commit_id":"ff968a3836505395d6260dc6e5681bbe28f8b54b","user":{"login":"elliottbiondo","id":1749283,"avatar_url":"https://avatars.githubusercontent.com/u/1749283?v=3","gravatar_id":"","url":"https://api.github.com/users/elliottbiondo","html_url":"https://github.com/elliottbiondo","followers_url":"https://api.github.com/users/elliottbiondo/followers","following_url":"https://api.github.com/users/elliottbiondo/following{/other_user}","gists_url":"https://api.github.com/users/elliottbiondo/gists{/gist_id}","starred_url":"https://api.github.com/users/elliottbiondo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliottbiondo/subscriptions","organizations_url":"https://api.github.com/users/elliottbiondo/orgs","repos_url":"https://api.github.com/users/elliottbiondo/repos","events_url":"https://api.github.com/users/elliottbiondo/events{/privacy}","received_events_url":"https://api.github.com/users/elliottbiondo/received_events","type":"User","site_admin":false},"body":"Good point. Fixed.","created_at":"2015-10-06T20:52:36Z","updated_at":"2015-10-06T20:52:36Z","html_url":"https://github.com/pyne/pyne/pull/772#discussion_r41320534","pull_request_url":"https://api.github.com/repos/pyne/pyne/pulls/772","_links":{"self":{"href":"https://api.github.com/repos/pyne/pyne/pulls/comments/41320534"},"html":{"href":"https://github.com/pyne/pyne/pull/772#discussion_r41320534"},"pull_request":{"href":"https://api.github.com/repos/pyne/pyne/pulls/772"}}},"pull_request":{"url":"https://api.github.com/repos/pyne/pyne/pulls/772","id":46952279,"html_url":"https://github.com/pyne/pyne/pull/772","diff_url":"https://github.com/pyne/pyne/pull/772.diff","patch_url":"https://github.com/pyne/pyne/pull/772.patch","issue_url":"https://api.github.com/repos/pyne/pyne/issues/772","number":772,"state":"open","locked":false,"title":"Atflux fix","user":{"login":"elliottbiondo","id":1749283,"avatar_url":"https://avatars.githubusercontent.com/u/1749283?v=3","gravatar_id":"","url":"https://api.github.com/users/elliottbiondo","html_url":"https://github.com/elliottbiondo","followers_url":"https://api.github.com/users/elliottbiondo/followers","following_url":"https://api.github.com/users/elliottbiondo/following{/other_user}","gists_url":"https://api.github.com/users/elliottbiondo/gists{/gist_id}","starred_url":"https://api.github.com/users/elliottbiondo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliottbiondo/subscriptions","organizations_url":"https://api.github.com/users/elliottbiondo/orgs","repos_url":"https://api.github.com/users/elliottbiondo/repos","events_url":"https://api.github.com/users/elliottbiondo/events{/privacy}","received_events_url":"https://api.github.com/users/elliottbiondo/received_events","type":"User","site_admin":false},"body":"Atflux files produced by PartiSN contain energy-wise fluxes in the reverse order of the energy order of Rtflux files, produced by forward calculations. This was not previously accounted for in my Rtflux/Atflux reading capabilities, and I only discovered this when I started doing adjoint transport problems. This PR fixes this and adds a test accordingly. @kkiesling or @makeclean could review.","created_at":"2015-10-06T20:18:52Z","updated_at":"2015-10-06T20:52:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc23d94b5faf2d1b1abb7bb0a77a97ad97d677f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pyne/pyne/pulls/772/commits","review_comments_url":"https://api.github.com/repos/pyne/pyne/pulls/772/comments","review_comment_url":"https://api.github.com/repos/pyne/pyne/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pyne/pyne/issues/772/comments","statuses_url":"https://api.github.com/repos/pyne/pyne/statuses/2f41bd5955f4655cf8c3c24517a0cfab62e0a0a2","head":{"label":"elliottbiondo:atflux","ref":"atflux","sha":"2f41bd5955f4655cf8c3c24517a0cfab62e0a0a2","user":{"login":"elliottbiondo","id":1749283,"avatar_url":"https://avatars.githubusercontent.com/u/1749283?v=3","gravatar_id":"","url":"https://api.github.com/users/elliottbiondo","html_url":"https://github.com/elliottbiondo","followers_url":"https://api.github.com/users/elliottbiondo/followers","following_url":"https://api.github.com/users/elliottbiondo/following{/other_user}","gists_url":"https://api.github.com/users/elliottbiondo/gists{/gist_id}","starred_url":"https://api.github.com/users/elliottbiondo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliottbiondo/subscriptions","organizations_url":"https://api.github.com/users/elliottbiondo/orgs","repos_url":"https://api.github.com/users/elliottbiondo/repos","events_url":"https://api.github.com/users/elliottbiondo/events{/privacy}","received_events_url":"https://api.github.com/users/elliottbiondo/received_events","type":"User","site_admin":false},"repo":{"id":23330634,"name":"pyne","full_name":"elliottbiondo/pyne","owner":{"login":"elliottbiondo","id":1749283,"avatar_url":"https://avatars.githubusercontent.com/u/1749283?v=3","gravatar_id":"","url":"https://api.github.com/users/elliottbiondo","html_url":"https://github.com/elliottbiondo","followers_url":"https://api.github.com/users/elliottbiondo/followers","following_url":"https://api.github.com/users/elliottbiondo/following{/other_user}","gists_url":"https://api.github.com/users/elliottbiondo/gists{/gist_id}","starred_url":"https://api.github.com/users/elliottbiondo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliottbiondo/subscriptions","organizations_url":"https://api.github.com/users/elliottbiondo/orgs","repos_url":"https://api.github.com/users/elliottbiondo/repos","events_url":"https://api.github.com/users/elliottbiondo/events{/privacy}","received_events_url":"https://api.github.com/users/elliottbiondo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elliottbiondo/pyne","description":"PyNE: The Nuclear Engineering Toolkit","fork":true,"url":"https://api.github.com/repos/elliottbiondo/pyne","forks_url":"https://api.github.com/repos/elliottbiondo/pyne/forks","keys_url":"https://api.github.com/repos/elliottbiondo/pyne/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elliottbiondo/pyne/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elliottbiondo/pyne/teams","hooks_url":"https://api.github.com/repos/elliottbiondo/pyne/hooks","issue_events_url":"https://api.github.com/repos/elliottbiondo/pyne/issues/events{/number}","events_url":"https://api.github.com/repos/elliottbiondo/pyne/events","assignees_url":"https://api.github.com/repos/elliottbiondo/pyne/assignees{/user}","branches_url":"https://api.github.com/repos/elliottbiondo/pyne/branches{/branch}","tags_url":"https://api.github.com/repos/elliottbiondo/pyne/tags","blobs_url":"https://api.github.com/repos/elliottbiondo/pyne/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elliottbiondo/pyne/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elliottbiondo/pyne/git/refs{/sha}","trees_url":"https://api.github.com/repos/elliottbiondo/pyne/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elliottbiondo/pyne/statuses/{sha}","languages_url":"https://api.github.com/repos/elliottbiondo/pyne/languages","stargazers_url":"https://api.github.com/repos/elliottbiondo/pyne/stargazers","contributors_url":"https://api.github.com/repos/elliottbiondo/pyne/contributors","subscribers_url":"https://api.github.com/repos/elliottbiondo/pyne/subscribers","subscription_url":"https://api.github.com/repos/elliottbiondo/pyne/subscription","commits_url":"https://api.github.com/repos/elliottbiondo/pyne/commits{/sha}","git_commits_url":"https://api.github.com/repos/elliottbiondo/pyne/git/commits{/sha}","comments_url":"https://api.github.com/repos/elliottbiondo/pyne/comments{/number}","issue_comment_url":"https://api.github.com/repos/elliottbiondo/pyne/issues/comments{/number}","contents_url":"https://api.github.com/repos/elliottbiondo/pyne/contents/{+path}","compare_url":"https://api.github.com/repos/elliottbiondo/pyne/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elliottbiondo/pyne/merges","archive_url":"https://api.github.com/repos/elliottbiondo/pyne/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elliottbiondo/pyne/downloads","issues_url":"https://api.github.com/repos/elliottbiondo/pyne/issues{/number}","pulls_url":"https://api.github.com/repos/elliottbiondo/pyne/pulls{/number}","milestones_url":"https://api.github.com/repos/elliottbiondo/pyne/milestones{/number}","notifications_url":"https://api.github.com/repos/elliottbiondo/pyne/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elliottbiondo/pyne/labels{/name}","releases_url":"https://api.github.com/repos/elliottbiondo/pyne/releases{/id}","created_at":"2014-08-25T22:17:03Z","updated_at":"2015-04-17T18:44:13Z","pushed_at":"2015-10-06T20:52:30Z","git_url":"git://github.com/elliottbiondo/pyne.git","ssh_url":"git@github.com:elliottbiondo/pyne.git","clone_url":"https://github.com/elliottbiondo/pyne.git","svn_url":"https://github.com/elliottbiondo/pyne","homepage":"http://pyne.io/","size":18273,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"pyne:develop","ref":"develop","sha":"0d9e71e2d487870e061d8ffdc514b0b515a190c2","user":{"login":"pyne","id":760696,"avatar_url":"https://avatars.githubusercontent.com/u/760696?v=3","gravatar_id":"","url":"https://api.github.com/users/pyne","html_url":"https://github.com/pyne","followers_url":"https://api.github.com/users/pyne/followers","following_url":"https://api.github.com/users/pyne/following{/other_user}","gists_url":"https://api.github.com/users/pyne/gists{/gist_id}","starred_url":"https://api.github.com/users/pyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyne/subscriptions","organizations_url":"https://api.github.com/users/pyne/orgs","repos_url":"https://api.github.com/users/pyne/repos","events_url":"https://api.github.com/users/pyne/events{/privacy}","received_events_url":"https://api.github.com/users/pyne/received_events","type":"Organization","site_admin":false},"repo":{"id":1684953,"name":"pyne","full_name":"pyne/pyne","owner":{"login":"pyne","id":760696,"avatar_url":"https://avatars.githubusercontent.com/u/760696?v=3","gravatar_id":"","url":"https://api.github.com/users/pyne","html_url":"https://github.com/pyne","followers_url":"https://api.github.com/users/pyne/followers","following_url":"https://api.github.com/users/pyne/following{/other_user}","gists_url":"https://api.github.com/users/pyne/gists{/gist_id}","starred_url":"https://api.github.com/users/pyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyne/subscriptions","organizations_url":"https://api.github.com/users/pyne/orgs","repos_url":"https://api.github.com/users/pyne/repos","events_url":"https://api.github.com/users/pyne/events{/privacy}","received_events_url":"https://api.github.com/users/pyne/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pyne/pyne","description":"PyNE: The Nuclear Engineering Toolkit","fork":false,"url":"https://api.github.com/repos/pyne/pyne","forks_url":"https://api.github.com/repos/pyne/pyne/forks","keys_url":"https://api.github.com/repos/pyne/pyne/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pyne/pyne/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pyne/pyne/teams","hooks_url":"https://api.github.com/repos/pyne/pyne/hooks","issue_events_url":"https://api.github.com/repos/pyne/pyne/issues/events{/number}","events_url":"https://api.github.com/repos/pyne/pyne/events","assignees_url":"https://api.github.com/repos/pyne/pyne/assignees{/user}","branches_url":"https://api.github.com/repos/pyne/pyne/branches{/branch}","tags_url":"https://api.github.com/repos/pyne/pyne/tags","blobs_url":"https://api.github.com/repos/pyne/pyne/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pyne/pyne/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pyne/pyne/git/refs{/sha}","trees_url":"https://api.github.com/repos/pyne/pyne/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pyne/pyne/statuses/{sha}","languages_url":"https://api.github.com/repos/pyne/pyne/languages","stargazers_url":"https://api.github.com/repos/pyne/pyne/stargazers","contributors_url":"https://api.github.com/repos/pyne/pyne/contributors","subscribers_url":"https://api.github.com/repos/pyne/pyne/subscribers","subscription_url":"https://api.github.com/repos/pyne/pyne/subscription","commits_url":"https://api.github.com/repos/pyne/pyne/commits{/sha}","git_commits_url":"https://api.github.com/repos/pyne/pyne/git/commits{/sha}","comments_url":"https://api.github.com/repos/pyne/pyne/comments{/number}","issue_comment_url":"https://api.github.com/repos/pyne/pyne/issues/comments{/number}","contents_url":"https://api.github.com/repos/pyne/pyne/contents/{+path}","compare_url":"https://api.github.com/repos/pyne/pyne/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pyne/pyne/merges","archive_url":"https://api.github.com/repos/pyne/pyne/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pyne/pyne/downloads","issues_url":"https://api.github.com/repos/pyne/pyne/issues{/number}","pulls_url":"https://api.github.com/repos/pyne/pyne/pulls{/number}","milestones_url":"https://api.github.com/repos/pyne/pyne/milestones{/number}","notifications_url":"https://api.github.com/repos/pyne/pyne/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pyne/pyne/labels{/name}","releases_url":"https://api.github.com/repos/pyne/pyne/releases{/id}","created_at":"2011-04-30T15:04:07Z","updated_at":"2015-09-29T21:28:22Z","pushed_at":"2015-10-06T20:52:32Z","git_url":"git://github.com/pyne/pyne.git","ssh_url":"git@github.com:pyne/pyne.git","clone_url":"https://github.com/pyne/pyne.git","svn_url":"https://github.com/pyne/pyne","homepage":"http://pyne.io/","size":89303,"stargazers_count":51,"watchers_count":51,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":73,"mirror_url":null,"open_issues_count":64,"forks":73,"open_issues":64,"watchers":51,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/pyne/pyne/pulls/772"},"html":{"href":"https://github.com/pyne/pyne/pull/772"},"issue":{"href":"https://api.github.com/repos/pyne/pyne/issues/772"},"comments":{"href":"https://api.github.com/repos/pyne/pyne/issues/772/comments"},"review_comments":{"href":"https://api.github.com/repos/pyne/pyne/pulls/772/comments"},"review_comment":{"href":"https://api.github.com/repos/pyne/pyne/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pyne/pyne/pulls/772/commits"},"statuses":{"href":"https://api.github.com/repos/pyne/pyne/statuses/2f41bd5955f4655cf8c3c24517a0cfab62e0a0a2"}}}}