{"action":"created","issue":{"url":"https://api.github.com/repos/soft-matter/trackpy/issues/394","repository_url":"https://api.github.com/repos/soft-matter/trackpy","labels_url":"https://api.github.com/repos/soft-matter/trackpy/issues/394/labels{/name}","comments_url":"https://api.github.com/repos/soft-matter/trackpy/issues/394/comments","events_url":"https://api.github.com/repos/soft-matter/trackpy/issues/394/events","html_url":"https://github.com/soft-matter/trackpy/issues/394","id":170551304,"node_id":"MDU6SXNzdWUxNzA1NTEzMDQ=","number":394,"title":"van Hove plotting problem","user":{"login":"Resonanz","id":6218191,"node_id":"MDQ6VXNlcjYyMTgxOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/6218191?v=4","gravatar_id":"","url":"https://api.github.com/users/Resonanz","html_url":"https://github.com/Resonanz","followers_url":"https://api.github.com/users/Resonanz/followers","following_url":"https://api.github.com/users/Resonanz/following{/other_user}","gists_url":"https://api.github.com/users/Resonanz/gists{/gist_id}","starred_url":"https://api.github.com/users/Resonanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Resonanz/subscriptions","organizations_url":"https://api.github.com/users/Resonanz/orgs","repos_url":"https://api.github.com/users/Resonanz/repos","events_url":"https://api.github.com/users/Resonanz/events{/privacy}","received_events_url":"https://api.github.com/users/Resonanz/received_events","type":"User","site_admin":false},"labels":[{"id":248701101,"node_id":"MDU6TGFiZWwyNDg3MDExMDE=","url":"https://api.github.com/repos/soft-matter/trackpy/labels/needs%20PR","name":"needs PR","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-08-11T00:53:25Z","updated_at":"2018-08-20T20:28:14Z","closed_at":null,"author_association":"NONE","body":"I am trying to get the van Hove function to work.\n\nIn the walkthrough I have added a little code to call the van Hove function as follows:\n\n```\n#existing in walkthrough\nt2 = t1[((t1['mass'] > 300) & (t1['size'] < 3.5) &\n         (t1['ecc'] < 0.1))]\n\n#added to walkthrough\npos = t2.set_index(['frame','particle'])['x'].unstack()\nvh = tp.vanhove(pos, lagtime=2)\n```\n\nI get this error for a span of lagtimes:\n\nValueError: ('range parameter must be finite.', 'occurred at index 0.0')\n\nwhich is coming from this line in the van Hove function:\n\n`vh = disp.apply(lambda x: Series(np.histogram(x, bins=global_bins, density=True)[0]))`\n\nAny help? Thanks !\n"},"comment":{"url":"https://api.github.com/repos/soft-matter/trackpy/issues/comments/414451958","html_url":"https://github.com/soft-matter/trackpy/issues/394#issuecomment-414451958","issue_url":"https://api.github.com/repos/soft-matter/trackpy/issues/394","id":414451958,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDQ1MTk1OA==","user":{"login":"danielballan","id":2279598,"node_id":"MDQ6VXNlcjIyNzk1OTg=","avatar_url":"https://avatars3.githubusercontent.com/u/2279598?v=4","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},"created_at":"2018-08-20T20:28:14Z","updated_at":"2018-08-20T20:28:14Z","author_association":"MEMBER","body":"> @danielballan Would be the one to provide a working example as he wrote the function.\r\n\r\nFair. See #516."}}
{"actor":{"display_login":"danielballan"}}