{"action":"created","issue":{"url":"https://api.github.com/repos/NSLS-II-CHX/CHX_BugReport/issues/8","repository_url":"https://api.github.com/repos/NSLS-II-CHX/CHX_BugReport","labels_url":"https://api.github.com/repos/NSLS-II-CHX/CHX_BugReport/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/NSLS-II-CHX/CHX_BugReport/issues/8/comments","events_url":"https://api.github.com/repos/NSLS-II-CHX/CHX_BugReport/issues/8/events","html_url":"https://github.com/NSLS-II-CHX/CHX_BugReport/issues/8","id":169845523,"number":8,"title":"get_each_box_mean_intensity    error","user":{"login":"rheadric","id":20894142,"avatar_url":"https://avatars.githubusercontent.com/u/20894142?v=3","gravatar_id":"","url":"https://api.github.com/users/rheadric","html_url":"https://github.com/rheadric","followers_url":"https://api.github.com/users/rheadric/followers","following_url":"https://api.github.com/users/rheadric/following{/other_user}","gists_url":"https://api.github.com/users/rheadric/gists{/gist_id}","starred_url":"https://api.github.com/users/rheadric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rheadric/subscriptions","organizations_url":"https://api.github.com/users/rheadric/orgs","repos_url":"https://api.github.com/users/rheadric/repos","events_url":"https://api.github.com/users/rheadric/events{/privacy}","received_events_url":"https://api.github.com/users/rheadric/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-08T05:23:53Z","updated_at":"2016-08-09T03:27:13Z","closed_at":null,"body":"mean_int_sets = get_each_box_mean_intensity( good_series, box_maskr, sampling = 1,\r\n                                timeperframe = md['frame_time']+md['count_time'], plot_ = True, uid=uid  )\r\n\r\ngives:\r\n\r\nXPCS_GiSAXS.py in get_each_box_mean_intensity(data_series, box_mask, sampling, timeperframe, plot_, *argv, **kwargs)\r\n   1295         ax.legend()\r\n   1296 \r\n-> 1297         fp = path + 'uid=%s--Mean intensity of each box-'%(uid)  + '.png'\r\n   1298         fig.savefig( fp, dpi=fig.dpi)\r\n   1299 \r\n\r\nNameError: name 'path' is not defined"},"comment":{"url":"https://api.github.com/repos/NSLS-II-CHX/CHX_BugReport/issues/comments/238443722","html_url":"https://github.com/NSLS-II-CHX/CHX_BugReport/issues/8#issuecomment-238443722","issue_url":"https://api.github.com/repos/NSLS-II-CHX/CHX_BugReport/issues/8","id":238443722,"user":{"login":"rheadric","id":20894142,"avatar_url":"https://avatars.githubusercontent.com/u/20894142?v=3","gravatar_id":"","url":"https://api.github.com/users/rheadric","html_url":"https://github.com/rheadric","followers_url":"https://api.github.com/users/rheadric/followers","following_url":"https://api.github.com/users/rheadric/following{/other_user}","gists_url":"https://api.github.com/users/rheadric/gists{/gist_id}","starred_url":"https://api.github.com/users/rheadric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rheadric/subscriptions","organizations_url":"https://api.github.com/users/rheadric/orgs","repos_url":"https://api.github.com/users/rheadric/repos","events_url":"https://api.github.com/users/rheadric/events{/privacy}","received_events_url":"https://api.github.com/users/rheadric/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T03:27:13Z","updated_at":"2016-08-09T03:27:13Z","body":"UnboundLocalError                         Traceback (most recent call last)\r\n<ipython-input-37-d0ccd232809a> in <module>()\r\n      1 mean_int_sets = get_each_box_mean_intensity( good_series, box_maskr, sampling = 1,\r\n----> 2                                 timeperframe = md['frame_time']+md['count_time'], plot_ = True, uid=uid, path=data_dir  )\r\n\r\n/opt/conda_envs/analysis/lib/python3.5/site-packages/chxanalys-0+untagged.59.gf3a9ec5.dirty-py3.5.egg/chxanalys/XPCS_GiSAXS.py in get_each_box_mean_intensity(data_series, box_mask, sampling, timeperframe, plot_, *argv, **kwargs)\r\n   1294 \r\n   1295         #fp = path + 'uid=%s--Mean intensity of each box-'%(uid)  + '.png'\r\n-> 1296         if path not in kwargs.keys():\r\n   1297             path=''\r\n   1298         else:\r\n\r\nUnboundLocalError: local variable 'path' referenced before assignment"}}
{"actor":{"display_login":"rheadric"}}