{"action":"created","comment":{"url":"https://api.github.com/repos/pyne/pyne/pulls/comments/181721604","pull_request_review_id":112221813,"id":181721604,"diff_hunk":"@@ -122,19 +139,60 @@ def _cards(source):\n              }\n     return cards\n \n-\n-def step1(cfg):\n-    \"\"\" This function writes the PARTISN input file for the adjoint photon \n-    transport   \n+def step0(cfg1, cfg2, clean):\n+    \"\"\"\n+    This function performs the SNILB criteria check.\n+    \n     Parameters\n     ----------\n-    cfg : dictionary\n+    cfg1 : dictionary\n+        User input for Step 1 from the config.yml file\n+    cfg2 : dictionary\n+        User input for Step 2 from the config.yml file    \n+    clean: str\n+        User input for condition on deleting the intermediate files\n+    \"\"\"\n+    # Get user input from config file\n+    geom = cfg2['geom_file']\n+    data_dir = cfg2['data_dir']\n+    irr_times = str(cfg2['irr_time']).split(' ')\n+    decay_times = str(cfg2['decay_time']).split(' ')\n+    num_p_groups = cfg1['p_groups']\n+    \n+    # Define a flat, 175 group neutron spectrum, with magnitude 1E12 [n/s]\n+    neutron_spectrum = [1]*175  # will be normalized\n+    flux_magnitudes = [1.75E14] # 1E12*175","path":"scripts/gtcadis.py","position":143,"original_position":143,"commit_id":"19225f88c51f8e5c60873266b3722bdc428eea21","original_commit_id":"19225f88c51f8e5c60873266b3722bdc428eea21","user":{"login":"gonuke","id":764326,"avatar_url":"https://avatars0.githubusercontent.com/u/764326?v=4","gravatar_id":"","url":"https://api.github.com/users/gonuke","html_url":"https://github.com/gonuke","followers_url":"https://api.github.com/users/gonuke/followers","following_url":"https://api.github.com/users/gonuke/following{/other_user}","gists_url":"https://api.github.com/users/gonuke/gists{/gist_id}","starred_url":"https://api.github.com/users/gonuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonuke/subscriptions","organizations_url":"https://api.github.com/users/gonuke/orgs","repos_url":"https://api.github.com/users/gonuke/repos","events_url":"https://api.github.com/users/gonuke/events{/privacy}","received_events_url":"https://api.github.com/users/gonuke/received_events","type":"User","site_admin":false},"body":"Is this the mag of the total flux?  ","created_at":"2018-04-16T12:50:32Z","updated_at":"2018-04-16T12:52:48Z","html_url":"https://github.com/pyne/pyne/pull/1025#discussion_r181721604","pull_request_url":"https://api.github.com/repos/pyne/pyne/pulls/1025","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pyne/pyne/pulls/comments/181721604"},"html":{"href":"https://github.com/pyne/pyne/pull/1025#discussion_r181721604"},"pull_request":{"href":"https://api.github.com/repos/pyne/pyne/pulls/1025"}}},"pull_request":{"url":"https://api.github.com/repos/pyne/pyne/pulls/1025","id":181576118,"html_url":"https://github.com/pyne/pyne/pull/1025","diff_url":"https://github.com/pyne/pyne/pull/1025.diff","patch_url":"https://github.com/pyne/pyne/pull/1025.patch","issue_url":"https://api.github.com/repos/pyne/pyne/issues/1025","number":1025,"state":"open","locked":false,"title":"GT-CADIS workflow, step 0 for SNILB criteria check","user":{"login":"moatazharb","id":5401832,"avatar_url":"https://avatars0.githubusercontent.com/u/5401832?v=4","gravatar_id":"","url":"https://api.github.com/users/moatazharb","html_url":"https://github.com/moatazharb","followers_url":"https://api.github.com/users/moatazharb/followers","following_url":"https://api.github.com/users/moatazharb/following{/other_user}","gists_url":"https://api.github.com/users/moatazharb/gists{/gist_id}","starred_url":"https://api.github.com/users/moatazharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moatazharb/subscriptions","organizations_url":"https://api.github.com/users/moatazharb/orgs","repos_url":"https://api.github.com/users/moatazharb/repos","events_url":"https://api.github.com/users/moatazharb/events{/privacy}","received_events_url":"https://api.github.com/users/moatazharb/received_events","type":"User","site_admin":false},"body":"This PR does the following:\r\n\r\n- Fixes #987 (the optional step for GT-CADIS workflow)\r\nChanges to gtcadis.py\r\n================\r\n- Read material-laden hdf5 geometry file\r\n- Write ALARA input files (inp, matlib, fluxin) and run ALARA\r\n- Process produced photon source file and calculates SNILB eta value \r\n-  Save eta values for each material and decay time in a numpy array and text file\r\n\r\nChanges to alara.py\r\n==============\r\n- Added calc_eta function \r\n- Added supporting functions","created_at":"2018-04-13T19:25:39Z","updated_at":"2018-04-16T12:52:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f259ab1c12c0b36d0a2986f1023144f92c59e22d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pyne/pyne/pulls/1025/commits","review_comments_url":"https://api.github.com/repos/pyne/pyne/pulls/1025/comments","review_comment_url":"https://api.github.com/repos/pyne/pyne/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pyne/pyne/issues/1025/comments","statuses_url":"https://api.github.com/repos/pyne/pyne/statuses/19225f88c51f8e5c60873266b3722bdc428eea21","head":{"label":"moatazharb:gtcadis_0","ref":"gtcadis_0","sha":"19225f88c51f8e5c60873266b3722bdc428eea21","user":{"login":"moatazharb","id":5401832,"avatar_url":"https://avatars0.githubusercontent.com/u/5401832?v=4","gravatar_id":"","url":"https://api.github.com/users/moatazharb","html_url":"https://github.com/moatazharb","followers_url":"https://api.github.com/users/moatazharb/followers","following_url":"https://api.github.com/users/moatazharb/following{/other_user}","gists_url":"https://api.github.com/users/moatazharb/gists{/gist_id}","starred_url":"https://api.github.com/users/moatazharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moatazharb/subscriptions","organizations_url":"https://api.github.com/users/moatazharb/orgs","repos_url":"https://api.github.com/users/moatazharb/repos","events_url":"https://api.github.com/users/moatazharb/events{/privacy}","received_events_url":"https://api.github.com/users/moatazharb/received_events","type":"User","site_admin":false},"repo":{"id":43906714,"name":"pyne","full_name":"moatazharb/pyne","owner":{"login":"moatazharb","id":5401832,"avatar_url":"https://avatars0.githubusercontent.com/u/5401832?v=4","gravatar_id":"","url":"https://api.github.com/users/moatazharb","html_url":"https://github.com/moatazharb","followers_url":"https://api.github.com/users/moatazharb/followers","following_url":"https://api.github.com/users/moatazharb/following{/other_user}","gists_url":"https://api.github.com/users/moatazharb/gists{/gist_id}","starred_url":"https://api.github.com/users/moatazharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moatazharb/subscriptions","organizations_url":"https://api.github.com/users/moatazharb/orgs","repos_url":"https://api.github.com/users/moatazharb/repos","events_url":"https://api.github.com/users/moatazharb/events{/privacy}","received_events_url":"https://api.github.com/users/moatazharb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moatazharb/pyne","description":"PyNE: The Nuclear Engineering Toolkit","fork":true,"url":"https://api.github.com/repos/moatazharb/pyne","forks_url":"https://api.github.com/repos/moatazharb/pyne/forks","keys_url":"https://api.github.com/repos/moatazharb/pyne/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moatazharb/pyne/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moatazharb/pyne/teams","hooks_url":"https://api.github.com/repos/moatazharb/pyne/hooks","issue_events_url":"https://api.github.com/repos/moatazharb/pyne/issues/events{/number}","events_url":"https://api.github.com/repos/moatazharb/pyne/events","assignees_url":"https://api.github.com/repos/moatazharb/pyne/assignees{/user}","branches_url":"https://api.github.com/repos/moatazharb/pyne/branches{/branch}","tags_url":"https://api.github.com/repos/moatazharb/pyne/tags","blobs_url":"https://api.github.com/repos/moatazharb/pyne/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moatazharb/pyne/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moatazharb/pyne/git/refs{/sha}","trees_url":"https://api.github.com/repos/moatazharb/pyne/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moatazharb/pyne/statuses/{sha}","languages_url":"https://api.github.com/repos/moatazharb/pyne/languages","stargazers_url":"https://api.github.com/repos/moatazharb/pyne/stargazers","contributors_url":"https://api.github.com/repos/moatazharb/pyne/contributors","subscribers_url":"https://api.github.com/repos/moatazharb/pyne/subscribers","subscription_url":"https://api.github.com/repos/moatazharb/pyne/subscription","commits_url":"https://api.github.com/repos/moatazharb/pyne/commits{/sha}","git_commits_url":"https://api.github.com/repos/moatazharb/pyne/git/commits{/sha}","comments_url":"https://api.github.com/repos/moatazharb/pyne/comments{/number}","issue_comment_url":"https://api.github.com/repos/moatazharb/pyne/issues/comments{/number}","contents_url":"https://api.github.com/repos/moatazharb/pyne/contents/{+path}","compare_url":"https://api.github.com/repos/moatazharb/pyne/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moatazharb/pyne/merges","archive_url":"https://api.github.com/repos/moatazharb/pyne/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moatazharb/pyne/downloads","issues_url":"https://api.github.com/repos/moatazharb/pyne/issues{/number}","pulls_url":"https://api.github.com/repos/moatazharb/pyne/pulls{/number}","milestones_url":"https://api.github.com/repos/moatazharb/pyne/milestones{/number}","notifications_url":"https://api.github.com/repos/moatazharb/pyne/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moatazharb/pyne/labels{/name}","releases_url":"https://api.github.com/repos/moatazharb/pyne/releases{/id}","deployments_url":"https://api.github.com/repos/moatazharb/pyne/deployments","created_at":"2015-10-08T17:50:17Z","updated_at":"2015-10-08T17:50:22Z","pushed_at":"2018-04-13T19:07:12Z","git_url":"git://github.com/moatazharb/pyne.git","ssh_url":"git@github.com:moatazharb/pyne.git","clone_url":"https://github.com/moatazharb/pyne.git","svn_url":"https://github.com/moatazharb/pyne","homepage":"http://pyne.io/","size":22384,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"pyne:develop","ref":"develop","sha":"b40da138488a55a2784aed0ad5a87255eafa3bfb","user":{"login":"pyne","id":760696,"avatar_url":"https://avatars2.githubusercontent.com/u/760696?v=4","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://avatars2.githubusercontent.com/u/760696?v=4","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}","deployments_url":"https://api.github.com/repos/pyne/pyne/deployments","created_at":"2011-04-30T15:04:07Z","updated_at":"2018-04-12T14:32:32Z","pushed_at":"2018-04-13T19:25:40Z","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":22144,"stargazers_count":97,"watchers_count":97,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":118,"mirror_url":null,"archived":false,"open_issues_count":135,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":118,"open_issues":135,"watchers":97,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/pyne/pyne/pulls/1025"},"html":{"href":"https://github.com/pyne/pyne/pull/1025"},"issue":{"href":"https://api.github.com/repos/pyne/pyne/issues/1025"},"comments":{"href":"https://api.github.com/repos/pyne/pyne/issues/1025/comments"},"review_comments":{"href":"https://api.github.com/repos/pyne/pyne/pulls/1025/comments"},"review_comment":{"href":"https://api.github.com/repos/pyne/pyne/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pyne/pyne/pulls/1025/commits"},"statuses":{"href":"https://api.github.com/repos/pyne/pyne/statuses/19225f88c51f8e5c60873266b3722bdc428eea21"}},"author_association":"NONE"}}
{"actor":{"display_login":"gonuke"}}