{"action":"created","issue":{"url":"https://api.github.com/repos/jobovy/galpy/issues/240","labels_url":"https://api.github.com/repos/jobovy/galpy/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/jobovy/galpy/issues/240/comments","events_url":"https://api.github.com/repos/jobovy/galpy/issues/240/events","html_url":"https://github.com/jobovy/galpy/issues/240","id":86764070,"number":240,"title":"DF Sampling Runtime issues","user":{"login":"adelave1","id":12821250,"avatar_url":"https://avatars.githubusercontent.com/u/12821250?v=3","gravatar_id":"","url":"https://api.github.com/users/adelave1","html_url":"https://github.com/adelave1","followers_url":"https://api.github.com/users/adelave1/followers","following_url":"https://api.github.com/users/adelave1/following{/other_user}","gists_url":"https://api.github.com/users/adelave1/gists{/gist_id}","starred_url":"https://api.github.com/users/adelave1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adelave1/subscriptions","organizations_url":"https://api.github.com/users/adelave1/orgs","repos_url":"https://api.github.com/users/adelave1/repos","events_url":"https://api.github.com/users/adelave1/events{/privacy}","received_events_url":"https://api.github.com/users/adelave1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jobovy/galpy/labels/Fixed%20in%20branch","name":"Fixed in branch","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"jobovy","id":1044876,"avatar_url":"https://avatars.githubusercontent.com/u/1044876?v=3","gravatar_id":"","url":"https://api.github.com/users/jobovy","html_url":"https://github.com/jobovy","followers_url":"https://api.github.com/users/jobovy/followers","following_url":"https://api.github.com/users/jobovy/following{/other_user}","gists_url":"https://api.github.com/users/jobovy/gists{/gist_id}","starred_url":"https://api.github.com/users/jobovy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobovy/subscriptions","organizations_url":"https://api.github.com/users/jobovy/orgs","repos_url":"https://api.github.com/users/jobovy/repos","events_url":"https://api.github.com/users/jobovy/events{/privacy}","received_events_url":"https://api.github.com/users/jobovy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/jobovy/galpy/milestones/8","html_url":"https://github.com/jobovy/galpy/milestones/v1.1","labels_url":"https://api.github.com/repos/jobovy/galpy/milestones/8/labels","id":619831,"number":8,"title":"v1.1","description":"","creator":{"login":"jobovy","id":1044876,"avatar_url":"https://avatars.githubusercontent.com/u/1044876?v=3","gravatar_id":"","url":"https://api.github.com/users/jobovy","html_url":"https://github.com/jobovy","followers_url":"https://api.github.com/users/jobovy/followers","following_url":"https://api.github.com/users/jobovy/following{/other_user}","gists_url":"https://api.github.com/users/jobovy/gists{/gist_id}","starred_url":"https://api.github.com/users/jobovy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobovy/subscriptions","organizations_url":"https://api.github.com/users/jobovy/orgs","repos_url":"https://api.github.com/users/jobovy/repos","events_url":"https://api.github.com/users/jobovy/events{/privacy}","received_events_url":"https://api.github.com/users/jobovy/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":6,"state":"open","created_at":"2014-04-03T21:40:50Z","updated_at":"2015-06-10T20:39:26Z","due_on":"2015-06-29T16:00:00Z","closed_at":null},"comments":4,"created_at":"2015-06-09T23:07:57Z","updated_at":"2015-06-10T21:56:33Z","closed_at":null,"body":"Hi, \r\n\r\nI'm using IPython to try to initialize orbits in the outer disk by sampling from a Dehnen DF (much like the example in the documentation) with: \r\n\r\ndfc = dehnendf(beta=0.)\r\no = dfc.sample(n=no, returnOrbit = True, nphi=1., rrange=[1.25, 2.5])\r\n\r\nwhere no is the number of orbits I want to instantiate. For some reason, if I choose a low no, like no < 100, I don't encounter any problems. If no >= 200, then I usually see Runtime warnings like these: \r\n\r\ngalpy/actionAngle_src/actionAngleAxi.py:370: RuntimeWarning: invalid value encountered in sqrt\r\n  return nu.sqrt(2.*(E-potentialAxi(r,pot))-L**2./r**2.)\r\n\r\ngalpy/actionAngle_src/actionAngleAxi.py:378: RuntimeWarning: divide by zero encountered in divide\r\n  return 2.*t/_JRAxiIntegrand(r,E,L,pot)\r\n\r\nscipy/integrate/quadrature.py:175: RuntimeWarning: invalid value encountered in double_scalars\r\n  err = abs(newval-val)\r\n\r\ngalpy/df_src/diskdf.py:1731: RuntimeWarning: divide by zero encountered in double_scalars\r\n  TR= 2.*math.pi/wR\r\n\r\nIPython then stalls and after a few minutes of nothing new happening, I need to interrupt the kernel and try again, which often leads to more of the same Runtime warnings. Do you have any idea of what could be causing these warnings? Any help would be greatly appreciated. \r\n\r\nThanks! "},"comment":{"url":"https://api.github.com/repos/jobovy/galpy/issues/comments/110928501","html_url":"https://github.com/jobovy/galpy/issues/240#issuecomment-110928501","issue_url":"https://api.github.com/repos/jobovy/galpy/issues/240","id":110928501,"user":{"login":"codecov-io","id":8655789,"avatar_url":"https://avatars.githubusercontent.com/u/8655789?v=3","gravatar_id":"","url":"https://api.github.com/users/codecov-io","html_url":"https://github.com/codecov-io","followers_url":"https://api.github.com/users/codecov-io/followers","following_url":"https://api.github.com/users/codecov-io/following{/other_user}","gists_url":"https://api.github.com/users/codecov-io/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov-io/subscriptions","organizations_url":"https://api.github.com/users/codecov-io/orgs","repos_url":"https://api.github.com/users/codecov-io/repos","events_url":"https://api.github.com/users/codecov-io/events{/privacy}","received_events_url":"https://api.github.com/users/codecov-io/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T21:56:33Z","updated_at":"2015-06-10T21:56:33Z","body":"## [Current coverage][1] is `99.66%`\n> Merging **dev-v1.1** into **None** will change coverage by **+99.66%** by [`f64d52f`][3]\n\n\n#### Coverage Diff\n> No diff could be generated. No reports for `None` found.\n\n\n[1]: https://codecov.io/github/jobovy/galpy?ref=f64d52fbc194a2bef9ed9de5205b2415a686be3a\n[2]: https://codecov.io/github/jobovy/galpy/features/suggestions?ref=f64d52fbc194a2bef9ed9de5205b2415a686be3a\n[3]: https://github.com/jobovy/galpy/commit/f64d52fbc194a2bef9ed9de5205b2415a686be3a\n\n> Powered by [Codecov](https://codecov.io)"}}