{"action":"created","comment":{"url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/comments/43060216","id":43060216,"diff_hunk":"@@ -558,10 +560,15 @@ def fit_single_pixel(self):\n                             output_folder, use_sinp=use_snip)\n             logger.info('Done with saving fitting plots.')\n \n-        if save_tiff == True:\n+        if self.save_tiff == True:","path":"pyxrf/model/fit_spectrum.py","position":23,"original_position":23,"commit_id":"fe04761b45dde171be5b0b4dc421ff909f4bcdb8","original_commit_id":"fe04761b45dde171be5b0b4dc421ff909f4bcdb8","user":{"login":"ericdill","id":6223243,"avatar_url":"https://avatars.githubusercontent.com/u/6223243?v=3","gravatar_id":"","url":"https://api.github.com/users/ericdill","html_url":"https://github.com/ericdill","followers_url":"https://api.github.com/users/ericdill/followers","following_url":"https://api.github.com/users/ericdill/following{/other_user}","gists_url":"https://api.github.com/users/ericdill/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdill/subscriptions","organizations_url":"https://api.github.com/users/ericdill/orgs","repos_url":"https://api.github.com/users/ericdill/repos","events_url":"https://api.github.com/users/ericdill/events{/privacy}","received_events_url":"https://api.github.com/users/ericdill/received_events","type":"User","site_admin":false},"body":"you can do this with just `if self.save_tiff`, don't need the `== True`","created_at":"2015-10-26T22:06:02Z","updated_at":"2015-10-26T22:06:02Z","html_url":"https://github.com/NSLS-II-HXN/PyXRF/pull/52#discussion_r43060216","pull_request_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/comments/43060216"},"html":{"href":"https://github.com/NSLS-II-HXN/PyXRF/pull/52#discussion_r43060216"},"pull_request":{"href":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/52","id":48795922,"html_url":"https://github.com/NSLS-II-HXN/PyXRF/pull/52","diff_url":"https://github.com/NSLS-II-HXN/PyXRF/pull/52.diff","patch_url":"https://github.com/NSLS-II-HXN/PyXRF/pull/52.patch","issue_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/issues/52","number":52,"state":"open","locked":false,"title":"DEV: save tiff and txt","user":{"login":"licode","id":4765544,"avatar_url":"https://avatars.githubusercontent.com/u/4765544?v=3","gravatar_id":"","url":"https://api.github.com/users/licode","html_url":"https://github.com/licode","followers_url":"https://api.github.com/users/licode/followers","following_url":"https://api.github.com/users/licode/following{/other_user}","gists_url":"https://api.github.com/users/licode/gists{/gist_id}","starred_url":"https://api.github.com/users/licode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/licode/subscriptions","organizations_url":"https://api.github.com/users/licode/orgs","repos_url":"https://api.github.com/users/licode/repos","events_url":"https://api.github.com/users/licode/events{/privacy}","received_events_url":"https://api.github.com/users/licode/received_events","type":"User","site_admin":false},"body":"in progress","created_at":"2015-10-26T20:55:18Z","updated_at":"2015-10-26T22:06:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"146077c7f8e3aea649adbcbca39d58b4763c91f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/52/commits","review_comments_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/52/comments","review_comment_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/issues/52/comments","statuses_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/statuses/fe04761b45dde171be5b0b4dc421ff909f4bcdb8","head":{"label":"licode:more_roi_sum","ref":"more_roi_sum","sha":"fe04761b45dde171be5b0b4dc421ff909f4bcdb8","user":{"login":"licode","id":4765544,"avatar_url":"https://avatars.githubusercontent.com/u/4765544?v=3","gravatar_id":"","url":"https://api.github.com/users/licode","html_url":"https://github.com/licode","followers_url":"https://api.github.com/users/licode/followers","following_url":"https://api.github.com/users/licode/following{/other_user}","gists_url":"https://api.github.com/users/licode/gists{/gist_id}","starred_url":"https://api.github.com/users/licode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/licode/subscriptions","organizations_url":"https://api.github.com/users/licode/orgs","repos_url":"https://api.github.com/users/licode/repos","events_url":"https://api.github.com/users/licode/events{/privacy}","received_events_url":"https://api.github.com/users/licode/received_events","type":"User","site_admin":false},"repo":{"id":33486227,"name":"PyXRF","full_name":"licode/PyXRF","owner":{"login":"licode","id":4765544,"avatar_url":"https://avatars.githubusercontent.com/u/4765544?v=3","gravatar_id":"","url":"https://api.github.com/users/licode","html_url":"https://github.com/licode","followers_url":"https://api.github.com/users/licode/followers","following_url":"https://api.github.com/users/licode/following{/other_user}","gists_url":"https://api.github.com/users/licode/gists{/gist_id}","starred_url":"https://api.github.com/users/licode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/licode/subscriptions","organizations_url":"https://api.github.com/users/licode/orgs","repos_url":"https://api.github.com/users/licode/repos","events_url":"https://api.github.com/users/licode/events{/privacy}","received_events_url":"https://api.github.com/users/licode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/licode/PyXRF","description":"Fluorescence fitting GUI.","fork":true,"url":"https://api.github.com/repos/licode/PyXRF","forks_url":"https://api.github.com/repos/licode/PyXRF/forks","keys_url":"https://api.github.com/repos/licode/PyXRF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/licode/PyXRF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/licode/PyXRF/teams","hooks_url":"https://api.github.com/repos/licode/PyXRF/hooks","issue_events_url":"https://api.github.com/repos/licode/PyXRF/issues/events{/number}","events_url":"https://api.github.com/repos/licode/PyXRF/events","assignees_url":"https://api.github.com/repos/licode/PyXRF/assignees{/user}","branches_url":"https://api.github.com/repos/licode/PyXRF/branches{/branch}","tags_url":"https://api.github.com/repos/licode/PyXRF/tags","blobs_url":"https://api.github.com/repos/licode/PyXRF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/licode/PyXRF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/licode/PyXRF/git/refs{/sha}","trees_url":"https://api.github.com/repos/licode/PyXRF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/licode/PyXRF/statuses/{sha}","languages_url":"https://api.github.com/repos/licode/PyXRF/languages","stargazers_url":"https://api.github.com/repos/licode/PyXRF/stargazers","contributors_url":"https://api.github.com/repos/licode/PyXRF/contributors","subscribers_url":"https://api.github.com/repos/licode/PyXRF/subscribers","subscription_url":"https://api.github.com/repos/licode/PyXRF/subscription","commits_url":"https://api.github.com/repos/licode/PyXRF/commits{/sha}","git_commits_url":"https://api.github.com/repos/licode/PyXRF/git/commits{/sha}","comments_url":"https://api.github.com/repos/licode/PyXRF/comments{/number}","issue_comment_url":"https://api.github.com/repos/licode/PyXRF/issues/comments{/number}","contents_url":"https://api.github.com/repos/licode/PyXRF/contents/{+path}","compare_url":"https://api.github.com/repos/licode/PyXRF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/licode/PyXRF/merges","archive_url":"https://api.github.com/repos/licode/PyXRF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/licode/PyXRF/downloads","issues_url":"https://api.github.com/repos/licode/PyXRF/issues{/number}","pulls_url":"https://api.github.com/repos/licode/PyXRF/pulls{/number}","milestones_url":"https://api.github.com/repos/licode/PyXRF/milestones{/number}","notifications_url":"https://api.github.com/repos/licode/PyXRF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/licode/PyXRF/labels{/name}","releases_url":"https://api.github.com/repos/licode/PyXRF/releases{/id}","created_at":"2015-04-06T14:30:31Z","updated_at":"2015-04-17T22:38:59Z","pushed_at":"2015-10-26T22:01:31Z","git_url":"git://github.com/licode/PyXRF.git","ssh_url":"git@github.com:licode/PyXRF.git","clone_url":"https://github.com/licode/PyXRF.git","svn_url":"https://github.com/licode/PyXRF","homepage":null,"size":1230,"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":"NSLS-II-HXN:master","ref":"master","sha":"514948cd18c7c5476c947161c4bf87bf442007f1","user":{"login":"NSLS-II-HXN","id":11178664,"avatar_url":"https://avatars.githubusercontent.com/u/11178664?v=3","gravatar_id":"","url":"https://api.github.com/users/NSLS-II-HXN","html_url":"https://github.com/NSLS-II-HXN","followers_url":"https://api.github.com/users/NSLS-II-HXN/followers","following_url":"https://api.github.com/users/NSLS-II-HXN/following{/other_user}","gists_url":"https://api.github.com/users/NSLS-II-HXN/gists{/gist_id}","starred_url":"https://api.github.com/users/NSLS-II-HXN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSLS-II-HXN/subscriptions","organizations_url":"https://api.github.com/users/NSLS-II-HXN/orgs","repos_url":"https://api.github.com/users/NSLS-II-HXN/repos","events_url":"https://api.github.com/users/NSLS-II-HXN/events{/privacy}","received_events_url":"https://api.github.com/users/NSLS-II-HXN/received_events","type":"Organization","site_admin":false},"repo":{"id":33327345,"name":"PyXRF","full_name":"NSLS-II-HXN/PyXRF","owner":{"login":"NSLS-II-HXN","id":11178664,"avatar_url":"https://avatars.githubusercontent.com/u/11178664?v=3","gravatar_id":"","url":"https://api.github.com/users/NSLS-II-HXN","html_url":"https://github.com/NSLS-II-HXN","followers_url":"https://api.github.com/users/NSLS-II-HXN/followers","following_url":"https://api.github.com/users/NSLS-II-HXN/following{/other_user}","gists_url":"https://api.github.com/users/NSLS-II-HXN/gists{/gist_id}","starred_url":"https://api.github.com/users/NSLS-II-HXN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSLS-II-HXN/subscriptions","organizations_url":"https://api.github.com/users/NSLS-II-HXN/orgs","repos_url":"https://api.github.com/users/NSLS-II-HXN/repos","events_url":"https://api.github.com/users/NSLS-II-HXN/events{/privacy}","received_events_url":"https://api.github.com/users/NSLS-II-HXN/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NSLS-II-HXN/PyXRF","description":"Fluorescence fitting GUI.","fork":false,"url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF","forks_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/forks","keys_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/teams","hooks_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/hooks","issue_events_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/issues/events{/number}","events_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/events","assignees_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/assignees{/user}","branches_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/branches{/branch}","tags_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/tags","blobs_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/git/refs{/sha}","trees_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/statuses/{sha}","languages_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/languages","stargazers_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/stargazers","contributors_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/contributors","subscribers_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/subscribers","subscription_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/subscription","commits_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/commits{/sha}","git_commits_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/git/commits{/sha}","comments_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/comments{/number}","issue_comment_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/issues/comments{/number}","contents_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/contents/{+path}","compare_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/merges","archive_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/downloads","issues_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/issues{/number}","pulls_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls{/number}","milestones_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/milestones{/number}","notifications_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/labels{/name}","releases_url":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/releases{/id}","created_at":"2015-04-02T19:19:56Z","updated_at":"2015-05-01T18:47:11Z","pushed_at":"2015-10-26T22:01:31Z","git_url":"git://github.com/NSLS-II-HXN/PyXRF.git","ssh_url":"git@github.com:NSLS-II-HXN/PyXRF.git","clone_url":"https://github.com/NSLS-II-HXN/PyXRF.git","svn_url":"https://github.com/NSLS-II-HXN/PyXRF","homepage":null,"size":1930,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/52"},"html":{"href":"https://github.com/NSLS-II-HXN/PyXRF/pull/52"},"issue":{"href":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/issues/52"},"comments":{"href":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/NSLS-II-HXN/PyXRF/statuses/fe04761b45dde171be5b0b4dc421ff909f4bcdb8"}}}}