{"action":"created","issue":{"url":"https://api.github.com/repos/open-source-economics/OG-USA/issues/318","repository_url":"https://api.github.com/repos/open-source-economics/OG-USA","labels_url":"https://api.github.com/repos/open-source-economics/OG-USA/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/open-source-economics/OG-USA/issues/318/comments","events_url":"https://api.github.com/repos/open-source-economics/OG-USA/issues/318/events","html_url":"https://github.com/open-source-economics/OG-USA/issues/318","id":265328890,"number":318,"title":"Performance improvement - check file / directory operations' usages","user":{"login":"PeterDSteinberg","id":1445602,"avatar_url":"https://avatars3.githubusercontent.com/u/1445602?v=4","gravatar_id":"","url":"https://api.github.com/users/PeterDSteinberg","html_url":"https://github.com/PeterDSteinberg","followers_url":"https://api.github.com/users/PeterDSteinberg/followers","following_url":"https://api.github.com/users/PeterDSteinberg/following{/other_user}","gists_url":"https://api.github.com/users/PeterDSteinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDSteinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDSteinberg/subscriptions","organizations_url":"https://api.github.com/users/PeterDSteinberg/orgs","repos_url":"https://api.github.com/users/PeterDSteinberg/repos","events_url":"https://api.github.com/users/PeterDSteinberg/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDSteinberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-13T15:27:21Z","updated_at":"2018-05-25T18:01:39Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"For the portions of OG-USA that are run in in functions called by web frontend, review the usage of temporary / scratch / output directory and file handling to see if some can be avoided in some/all situations, e.g. this from execute.py.\r\n\r\n```\r\ndirs = [saved_moments_dir, ss_dir, tpi_dir]\r\n    for _dir in dirs:\r\n        try:\r\n            print \"making dir: \", _dir\r\n            os.makedirs(_dir)\r\n        except OSError as oe:\r\n            pass\r\n```"},"comment":{"url":"https://api.github.com/repos/open-source-economics/OG-USA/issues/comments/392135833","html_url":"https://github.com/open-source-economics/OG-USA/issues/318#issuecomment-392135833","issue_url":"https://api.github.com/repos/open-source-economics/OG-USA/issues/318","id":392135833,"user":{"login":"rickecon","id":4317690,"avatar_url":"https://avatars2.githubusercontent.com/u/4317690?v=4","gravatar_id":"","url":"https://api.github.com/users/rickecon","html_url":"https://github.com/rickecon","followers_url":"https://api.github.com/users/rickecon/followers","following_url":"https://api.github.com/users/rickecon/following{/other_user}","gists_url":"https://api.github.com/users/rickecon/gists{/gist_id}","starred_url":"https://api.github.com/users/rickecon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickecon/subscriptions","organizations_url":"https://api.github.com/users/rickecon/orgs","repos_url":"https://api.github.com/users/rickecon/repos","events_url":"https://api.github.com/users/rickecon/events{/privacy}","received_events_url":"https://api.github.com/users/rickecon/received_events","type":"User","site_admin":false},"created_at":"2018-05-25T18:01:39Z","updated_at":"2018-05-25T18:01:39Z","author_association":"CONTRIBUTOR","body":"Wait. It seems like anyone running OG-USA locally would want these pickle file saved to disk by default, which allows them to skip a lengthy computation for subsequent runs. It seems to me that the only application for which the default saving option should be false is the web app. "}}
{"actor":{"display_login":"rickecon"}}