{"action":"opened","issue":{"url":"https://api.github.com/repos/xpdAcq/xpdAn/issues/29","repository_url":"https://api.github.com/repos/xpdAcq/xpdAn","labels_url":"https://api.github.com/repos/xpdAcq/xpdAn/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/xpdAcq/xpdAn/issues/29/comments","events_url":"https://api.github.com/repos/xpdAcq/xpdAn/issues/29/events","html_url":"https://github.com/xpdAcq/xpdAn/issues/29","id":180513712,"number":29,"title":"Suggestion: refactor startup script 999-load.py as a method","user":{"login":"danielballan","id":2279598,"avatar_url":"https://avatars.githubusercontent.com/u/2279598?v=3","gravatar_id":"","url":"https://api.github.com/users/danielballan","html_url":"https://github.com/danielballan","followers_url":"https://api.github.com/users/danielballan/followers","following_url":"https://api.github.com/users/danielballan/following{/other_user}","gists_url":"https://api.github.com/users/danielballan/gists{/gist_id}","starred_url":"https://api.github.com/users/danielballan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielballan/subscriptions","organizations_url":"https://api.github.com/users/danielballan/orgs","repos_url":"https://api.github.com/users/danielballan/repos","events_url":"https://api.github.com/users/danielballan/events{/privacy}","received_events_url":"https://api.github.com/users/danielballan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-02T14:02:58Z","updated_at":"2016-10-02T14:02:58Z","closed_at":null,"body":"If I understand correctly, you distribute 999-load.py as a script that is meant to be included in an IPython profile. This makes it difficult to manage different versions on xpdAn (or xpdAcq) on a single account. I would suggest moving the code into a top-level function, `xpdAn.setup()`. All versions of xpdAn/xpdAcq can have this functions (it could be backported to previous releases). Then, the IPython profile can safely call `xpdAn.setup()` and `xpdAcq.setup()` -- possibly taking as arguments any local variables it needs, such as `pe1`. The makes it possible to upgrade xpdAn/xpdAnl without editing the profile."}}
{"actor":{"display_login":"danielballan"}}