{"action":"created","issue":{"url":"https://api.github.com/repos/BayAreaMetro/bayarea_urbansim/issues/114","repository_url":"https://api.github.com/repos/BayAreaMetro/bayarea_urbansim","labels_url":"https://api.github.com/repos/BayAreaMetro/bayarea_urbansim/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/BayAreaMetro/bayarea_urbansim/issues/114/comments","events_url":"https://api.github.com/repos/BayAreaMetro/bayarea_urbansim/issues/114/events","html_url":"https://github.com/BayAreaMetro/bayarea_urbansim/pull/114","id":503589853,"node_id":"MDExOlB1bGxSZXF1ZXN0MzI1NDEyODEy","number":114,"title":"Updating import statements for Python 3 compatibility","user":{"login":"smmaurer","id":3768016,"node_id":"MDQ6VXNlcjM3NjgwMTY=","avatar_url":"https://avatars1.githubusercontent.com/u/3768016?v=4","gravatar_id":"","url":"https://api.github.com/users/smmaurer","html_url":"https://github.com/smmaurer","followers_url":"https://api.github.com/users/smmaurer/followers","following_url":"https://api.github.com/users/smmaurer/following{/other_user}","gists_url":"https://api.github.com/users/smmaurer/gists{/gist_id}","starred_url":"https://api.github.com/users/smmaurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smmaurer/subscriptions","organizations_url":"https://api.github.com/users/smmaurer/orgs","repos_url":"https://api.github.com/users/smmaurer/repos","events_url":"https://api.github.com/users/smmaurer/events{/privacy}","received_events_url":"https://api.github.com/users/smmaurer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-10-07T17:32:18Z","updated_at":"2019-11-13T22:14:20Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/BayAreaMetro/bayarea_urbansim/pulls/114","html_url":"https://github.com/BayAreaMetro/bayarea_urbansim/pull/114","diff_url":"https://github.com/BayAreaMetro/bayarea_urbansim/pull/114.diff","patch_url":"https://github.com/BayAreaMetro/bayarea_urbansim/pull/114.patch"},"body":"This PR updates import statements throughout `bayarea_urbansim` to support Python 2.7 and 3.x concurrently. This is the fourth part of a larger set of cross-compatibility updates, described in urbansim/mtc-planning#4.\r\n\r\n### Changes\r\n\r\nPython 3 no longer allows \"implicit relative imports\" where, for example, code from a local file named `models.py` is imported with the line `import models`. The general recommendation is to use absolute imports instead -- in this case, `from baus import models`. \r\n\r\nSee here for more info: https://www.python.org/dev/peps/pep-0008/#imports\r\n\r\nAlso -- one of the files in the `scripts` folder is used within the model, so I moved that file into `baus` so that it can be imported more cleanly.\r\n\r\n### Testing\r\n\r\n- Using Python 2.7 with a random seed, the output in `runXX_taz_summaries_2015.csv` is identical with and without these changes"},"comment":{"url":"https://api.github.com/repos/BayAreaMetro/bayarea_urbansim/issues/comments/553629154","html_url":"https://github.com/BayAreaMetro/bayarea_urbansim/pull/114#issuecomment-553629154","issue_url":"https://api.github.com/repos/BayAreaMetro/bayarea_urbansim/issues/114","id":553629154,"node_id":"MDEyOklzc3VlQ29tbWVudDU1MzYyOTE1NA==","user":{"login":"theocharides","id":24416765,"node_id":"MDQ6VXNlcjI0NDE2NzY1","avatar_url":"https://avatars0.githubusercontent.com/u/24416765?v=4","gravatar_id":"","url":"https://api.github.com/users/theocharides","html_url":"https://github.com/theocharides","followers_url":"https://api.github.com/users/theocharides/followers","following_url":"https://api.github.com/users/theocharides/following{/other_user}","gists_url":"https://api.github.com/users/theocharides/gists{/gist_id}","starred_url":"https://api.github.com/users/theocharides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theocharides/subscriptions","organizations_url":"https://api.github.com/users/theocharides/orgs","repos_url":"https://api.github.com/users/theocharides/repos","events_url":"https://api.github.com/users/theocharides/events{/privacy}","received_events_url":"https://api.github.com/users/theocharides/received_events","type":"User","site_admin":false},"created_at":"2019-11-13T22:14:20Z","updated_at":"2019-11-13T22:14:20Z","author_association":"NONE","body":"Identical TAZ 2030 files using Windows, with and without PR. Tested Python 2 (numpy 1.16.2), and will test all of the PRs together with Python 3."}}
{"actor":{"display_login":"theocharides"}}