{"action":"closed","number":564,"pull_request":{"url":"https://api.github.com/repos/espressomd/espresso/pulls/564","id":63073098,"html_url":"https://github.com/espressomd/espresso/pull/564","diff_url":"https://github.com/espressomd/espresso/pull/564.diff","patch_url":"https://github.com/espressomd/espresso/pull/564.patch","issue_url":"https://api.github.com/repos/espressomd/espresso/issues/564","number":564,"state":"closed","locked":false,"title":"Mayavi","user":{"login":"mkuron","id":1748330,"avatar_url":"https://avatars.githubusercontent.com/u/1748330?v=3","gravatar_id":"","url":"https://api.github.com/users/mkuron","html_url":"https://github.com/mkuron","followers_url":"https://api.github.com/users/mkuron/followers","following_url":"https://api.github.com/users/mkuron/following{/other_user}","gists_url":"https://api.github.com/users/mkuron/gists{/gist_id}","starred_url":"https://api.github.com/users/mkuron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkuron/subscriptions","organizations_url":"https://api.github.com/users/mkuron/orgs","repos_url":"https://api.github.com/users/mkuron/repos","events_url":"https://api.github.com/users/mkuron/events{/privacy}","received_events_url":"https://api.github.com/users/mkuron/received_events","type":"User","site_admin":false},"body":"Here's the first fully-working version of the Mayavi live visualization. Please test and let me know what you think.\r\n\r\nSimply add\r\n```\r\nfrom espressomd import visualization\r\nmayavi = visualization.mayavi_live(system)\r\n```\r\nto your setup code and add\r\n```\r\nmayavi.update()\r\n```\r\nto your integration loop. Note that the GUI runs in the main thread, so it will react to button presses only when you call the `update` method the next time. To work around this, you could run your integrate loop in a separate thread, which would probably look something like this:\r\n```\r\nmayavi = visualization.mayavi_live(system)\r\n\r\ndef integrate_loop():\r\n  for i in range(0,int_n_times):\r\n    integrate.integrate(int_steps)\r\n    mayavi.update()\r\n\r\nt = Thread(target=integrate_loop)\r\nt.start()\r\nmayavi.run_gui_event_loop()\r\n```\r\n------------------\r\n\r\nYou may need to update Mayavi yourself if the one included in your Linux distribution isn't working:\r\n```\r\npip install --user mayavi\r\n```\r\nIf your Linux distribution ships with a VTK version that is too new, you need to get the most recent development version of 4.5.0 (see https://github.com/enthought/mayavi/issues/271).\r\n```\r\npip install --user https://github.com/enthought/mayavi/archive/master.zip\r\n```","created_at":"2016-03-16T14:28:17Z","updated_at":"2016-05-25T11:02:15Z","closed_at":"2016-05-25T11:02:15Z","merged_at":"2016-05-25T11:02:15Z","merge_commit_sha":"cc9901eb3def91c5eedf8e2775a818a1396e0ed1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/espressomd/espresso/pulls/564/commits","review_comments_url":"https://api.github.com/repos/espressomd/espresso/pulls/564/comments","review_comment_url":"https://api.github.com/repos/espressomd/espresso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/espressomd/espresso/issues/564/comments","statuses_url":"https://api.github.com/repos/espressomd/espresso/statuses/ba44c1315d9ede7090448df2325eca1a87d331f8","head":{"label":"mkuron:mayavi","ref":"mayavi","sha":"ba44c1315d9ede7090448df2325eca1a87d331f8","user":{"login":"mkuron","id":1748330,"avatar_url":"https://avatars.githubusercontent.com/u/1748330?v=3","gravatar_id":"","url":"https://api.github.com/users/mkuron","html_url":"https://github.com/mkuron","followers_url":"https://api.github.com/users/mkuron/followers","following_url":"https://api.github.com/users/mkuron/following{/other_user}","gists_url":"https://api.github.com/users/mkuron/gists{/gist_id}","starred_url":"https://api.github.com/users/mkuron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkuron/subscriptions","organizations_url":"https://api.github.com/users/mkuron/orgs","repos_url":"https://api.github.com/users/mkuron/repos","events_url":"https://api.github.com/users/mkuron/events{/privacy}","received_events_url":"https://api.github.com/users/mkuron/received_events","type":"User","site_admin":false},"repo":{"id":9392652,"name":"espresso","full_name":"mkuron/espresso","owner":{"login":"mkuron","id":1748330,"avatar_url":"https://avatars.githubusercontent.com/u/1748330?v=3","gravatar_id":"","url":"https://api.github.com/users/mkuron","html_url":"https://github.com/mkuron","followers_url":"https://api.github.com/users/mkuron/followers","following_url":"https://api.github.com/users/mkuron/following{/other_user}","gists_url":"https://api.github.com/users/mkuron/gists{/gist_id}","starred_url":"https://api.github.com/users/mkuron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkuron/subscriptions","organizations_url":"https://api.github.com/users/mkuron/orgs","repos_url":"https://api.github.com/users/mkuron/repos","events_url":"https://api.github.com/users/mkuron/events{/privacy}","received_events_url":"https://api.github.com/users/mkuron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mkuron/espresso","description":"The ESPResSo package","fork":true,"url":"https://api.github.com/repos/mkuron/espresso","forks_url":"https://api.github.com/repos/mkuron/espresso/forks","keys_url":"https://api.github.com/repos/mkuron/espresso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mkuron/espresso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mkuron/espresso/teams","hooks_url":"https://api.github.com/repos/mkuron/espresso/hooks","issue_events_url":"https://api.github.com/repos/mkuron/espresso/issues/events{/number}","events_url":"https://api.github.com/repos/mkuron/espresso/events","assignees_url":"https://api.github.com/repos/mkuron/espresso/assignees{/user}","branches_url":"https://api.github.com/repos/mkuron/espresso/branches{/branch}","tags_url":"https://api.github.com/repos/mkuron/espresso/tags","blobs_url":"https://api.github.com/repos/mkuron/espresso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mkuron/espresso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mkuron/espresso/git/refs{/sha}","trees_url":"https://api.github.com/repos/mkuron/espresso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mkuron/espresso/statuses/{sha}","languages_url":"https://api.github.com/repos/mkuron/espresso/languages","stargazers_url":"https://api.github.com/repos/mkuron/espresso/stargazers","contributors_url":"https://api.github.com/repos/mkuron/espresso/contributors","subscribers_url":"https://api.github.com/repos/mkuron/espresso/subscribers","subscription_url":"https://api.github.com/repos/mkuron/espresso/subscription","commits_url":"https://api.github.com/repos/mkuron/espresso/commits{/sha}","git_commits_url":"https://api.github.com/repos/mkuron/espresso/git/commits{/sha}","comments_url":"https://api.github.com/repos/mkuron/espresso/comments{/number}","issue_comment_url":"https://api.github.com/repos/mkuron/espresso/issues/comments{/number}","contents_url":"https://api.github.com/repos/mkuron/espresso/contents/{+path}","compare_url":"https://api.github.com/repos/mkuron/espresso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mkuron/espresso/merges","archive_url":"https://api.github.com/repos/mkuron/espresso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mkuron/espresso/downloads","issues_url":"https://api.github.com/repos/mkuron/espresso/issues{/number}","pulls_url":"https://api.github.com/repos/mkuron/espresso/pulls{/number}","milestones_url":"https://api.github.com/repos/mkuron/espresso/milestones{/number}","notifications_url":"https://api.github.com/repos/mkuron/espresso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mkuron/espresso/labels{/name}","releases_url":"https://api.github.com/repos/mkuron/espresso/releases{/id}","deployments_url":"https://api.github.com/repos/mkuron/espresso/deployments","created_at":"2013-04-12T11:15:51Z","updated_at":"2015-04-21T10:09:29Z","pushed_at":"2016-05-25T08:26:13Z","git_url":"git://github.com/mkuron/espresso.git","ssh_url":"git@github.com:mkuron/espresso.git","clone_url":"https://github.com/mkuron/espresso.git","svn_url":"https://github.com/mkuron/espresso","homepage":"http://espressomd.org","size":78083,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"espressomd:master","ref":"master","sha":"eddda5ff0901645b97c011ba8fb5231b3d8a3dbf","user":{"login":"espressomd","id":689837,"avatar_url":"https://avatars.githubusercontent.com/u/689837?v=3","gravatar_id":"","url":"https://api.github.com/users/espressomd","html_url":"https://github.com/espressomd","followers_url":"https://api.github.com/users/espressomd/followers","following_url":"https://api.github.com/users/espressomd/following{/other_user}","gists_url":"https://api.github.com/users/espressomd/gists{/gist_id}","starred_url":"https://api.github.com/users/espressomd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/espressomd/subscriptions","organizations_url":"https://api.github.com/users/espressomd/orgs","repos_url":"https://api.github.com/users/espressomd/repos","events_url":"https://api.github.com/users/espressomd/events{/privacy}","received_events_url":"https://api.github.com/users/espressomd/received_events","type":"Organization","site_admin":false},"repo":{"id":1524644,"name":"espresso","full_name":"espressomd/espresso","owner":{"login":"espressomd","id":689837,"avatar_url":"https://avatars.githubusercontent.com/u/689837?v=3","gravatar_id":"","url":"https://api.github.com/users/espressomd","html_url":"https://github.com/espressomd","followers_url":"https://api.github.com/users/espressomd/followers","following_url":"https://api.github.com/users/espressomd/following{/other_user}","gists_url":"https://api.github.com/users/espressomd/gists{/gist_id}","starred_url":"https://api.github.com/users/espressomd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/espressomd/subscriptions","organizations_url":"https://api.github.com/users/espressomd/orgs","repos_url":"https://api.github.com/users/espressomd/repos","events_url":"https://api.github.com/users/espressomd/events{/privacy}","received_events_url":"https://api.github.com/users/espressomd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/espressomd/espresso","description":"The ESPResSo package","fork":false,"url":"https://api.github.com/repos/espressomd/espresso","forks_url":"https://api.github.com/repos/espressomd/espresso/forks","keys_url":"https://api.github.com/repos/espressomd/espresso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/espressomd/espresso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/espressomd/espresso/teams","hooks_url":"https://api.github.com/repos/espressomd/espresso/hooks","issue_events_url":"https://api.github.com/repos/espressomd/espresso/issues/events{/number}","events_url":"https://api.github.com/repos/espressomd/espresso/events","assignees_url":"https://api.github.com/repos/espressomd/espresso/assignees{/user}","branches_url":"https://api.github.com/repos/espressomd/espresso/branches{/branch}","tags_url":"https://api.github.com/repos/espressomd/espresso/tags","blobs_url":"https://api.github.com/repos/espressomd/espresso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/espressomd/espresso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/espressomd/espresso/git/refs{/sha}","trees_url":"https://api.github.com/repos/espressomd/espresso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/espressomd/espresso/statuses/{sha}","languages_url":"https://api.github.com/repos/espressomd/espresso/languages","stargazers_url":"https://api.github.com/repos/espressomd/espresso/stargazers","contributors_url":"https://api.github.com/repos/espressomd/espresso/contributors","subscribers_url":"https://api.github.com/repos/espressomd/espresso/subscribers","subscription_url":"https://api.github.com/repos/espressomd/espresso/subscription","commits_url":"https://api.github.com/repos/espressomd/espresso/commits{/sha}","git_commits_url":"https://api.github.com/repos/espressomd/espresso/git/commits{/sha}","comments_url":"https://api.github.com/repos/espressomd/espresso/comments{/number}","issue_comment_url":"https://api.github.com/repos/espressomd/espresso/issues/comments{/number}","contents_url":"https://api.github.com/repos/espressomd/espresso/contents/{+path}","compare_url":"https://api.github.com/repos/espressomd/espresso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/espressomd/espresso/merges","archive_url":"https://api.github.com/repos/espressomd/espresso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/espressomd/espresso/downloads","issues_url":"https://api.github.com/repos/espressomd/espresso/issues{/number}","pulls_url":"https://api.github.com/repos/espressomd/espresso/pulls{/number}","milestones_url":"https://api.github.com/repos/espressomd/espresso/milestones{/number}","notifications_url":"https://api.github.com/repos/espressomd/espresso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/espressomd/espresso/labels{/name}","releases_url":"https://api.github.com/repos/espressomd/espresso/releases{/id}","deployments_url":"https://api.github.com/repos/espressomd/espresso/deployments","created_at":"2011-03-25T07:43:15Z","updated_at":"2016-05-23T17:20:03Z","pushed_at":"2016-05-25T11:02:15Z","git_url":"git://github.com/espressomd/espresso.git","ssh_url":"git@github.com:espressomd/espresso.git","clone_url":"https://github.com/espressomd/espresso.git","svn_url":"https://github.com/espressomd/espresso","homepage":"http://espressomd.org","size":90413,"stargazers_count":43,"watchers_count":43,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":77,"mirror_url":null,"open_issues_count":97,"forks":77,"open_issues":97,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/espressomd/espresso/pulls/564"},"html":{"href":"https://github.com/espressomd/espresso/pull/564"},"issue":{"href":"https://api.github.com/repos/espressomd/espresso/issues/564"},"comments":{"href":"https://api.github.com/repos/espressomd/espresso/issues/564/comments"},"review_comments":{"href":"https://api.github.com/repos/espressomd/espresso/pulls/564/comments"},"review_comment":{"href":"https://api.github.com/repos/espressomd/espresso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/espressomd/espresso/pulls/564/commits"},"statuses":{"href":"https://api.github.com/repos/espressomd/espresso/statuses/ba44c1315d9ede7090448df2325eca1a87d331f8"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"fweik","id":893663,"avatar_url":"https://avatars.githubusercontent.com/u/893663?v=3","gravatar_id":"","url":"https://api.github.com/users/fweik","html_url":"https://github.com/fweik","followers_url":"https://api.github.com/users/fweik/followers","following_url":"https://api.github.com/users/fweik/following{/other_user}","gists_url":"https://api.github.com/users/fweik/gists{/gist_id}","starred_url":"https://api.github.com/users/fweik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fweik/subscriptions","organizations_url":"https://api.github.com/users/fweik/orgs","repos_url":"https://api.github.com/users/fweik/repos","events_url":"https://api.github.com/users/fweik/events{/privacy}","received_events_url":"https://api.github.com/users/fweik/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":24,"additions":439,"deletions":2,"changed_files":6}}
{"actor":{"display_login":"fweik"}}