{"action":"created","issue":{"url":"https://api.github.com/repos/steven-murray/hmf/issues/17","labels_url":"https://api.github.com/repos/steven-murray/hmf/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/steven-murray/hmf/issues/17/comments","events_url":"https://api.github.com/repos/steven-murray/hmf/issues/17/events","html_url":"https://github.com/steven-murray/hmf/issues/17","id":117808144,"number":17,"title":"py.test error after intall","user":{"login":"yuanshuoastro","id":2148144,"avatar_url":"https://avatars.githubusercontent.com/u/2148144?v=3","gravatar_id":"","url":"https://api.github.com/users/yuanshuoastro","html_url":"https://github.com/yuanshuoastro","followers_url":"https://api.github.com/users/yuanshuoastro/followers","following_url":"https://api.github.com/users/yuanshuoastro/following{/other_user}","gists_url":"https://api.github.com/users/yuanshuoastro/gists{/gist_id}","starred_url":"https://api.github.com/users/yuanshuoastro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuanshuoastro/subscriptions","organizations_url":"https://api.github.com/users/yuanshuoastro/orgs","repos_url":"https://api.github.com/users/yuanshuoastro/repos","events_url":"https://api.github.com/users/yuanshuoastro/events{/privacy}","received_events_url":"https://api.github.com/users/yuanshuoastro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T12:55:36Z","updated_at":"2015-11-20T03:34:58Z","closed_at":null,"body":"Hi Steven,\r\nI install the pycamb and hmf(release1.8.0) from you github.\r\nNo errors during installing. But when I try the py.test in your ./test dir, I meet the Failure:\r\n\r\n=================================== FAILURES ===================================\r\n___________________________ TestFcoll.test_fcolls[0] ___________________________\r\n\r\nself = <test_fcoll.TestFcoll object at 0x7f8175af95d0>\r\npert = <hmf.hmf.MassFunction object at 0x7f8175af9850>, fit = 'PS'\r\n\r\n    def check_fcoll(self, pert, fit):\r\n        if fit == \"PS\":\r\n            anl = fcoll_PS(np.sqrt(pert.nu))\r\n            num = pert.rho_gtm / pert.mean_dens\r\n    \r\n        elif fit == \"Peacock\":\r\n            anl = fcoll_Peacock(np.sqrt(pert.nu))\r\n            num = pert.rho_gtm / pert.mean_dens\r\n    \r\n        err = np.abs((num - anl) / anl)\r\n        print np.max(err)\r\n        print num / anl - 1\r\n>       assert np.max(err) < 0.05\r\nE       assert 1.1693592892307125 < 0.05\r\nE        +  where 1.1693592892307125 = <function amax at 0x7f817e4ab050>(array([  2.46884309e-01,   2.46889912e-01,   2.46894728e-01,\\n         2.468987...  1.09377128e+00,   1.11834393e+00,\\n         1.14353402e+00,   1.16935929e+00]))\r\nE        +    where <function amax at 0x7f817e4ab050> = np.max\r\n\r\nDo you think it is OK? What else should I do?\r\n\r\nThanks!\r\nShuo"},"comment":{"url":"https://api.github.com/repos/steven-murray/hmf/issues/comments/158269398","html_url":"https://github.com/steven-murray/hmf/issues/17#issuecomment-158269398","issue_url":"https://api.github.com/repos/steven-murray/hmf/issues/17","id":158269398,"user":{"login":"steven-murray","id":1272030,"avatar_url":"https://avatars.githubusercontent.com/u/1272030?v=3","gravatar_id":"","url":"https://api.github.com/users/steven-murray","html_url":"https://github.com/steven-murray","followers_url":"https://api.github.com/users/steven-murray/followers","following_url":"https://api.github.com/users/steven-murray/following{/other_user}","gists_url":"https://api.github.com/users/steven-murray/gists{/gist_id}","starred_url":"https://api.github.com/users/steven-murray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steven-murray/subscriptions","organizations_url":"https://api.github.com/users/steven-murray/orgs","repos_url":"https://api.github.com/users/steven-murray/repos","events_url":"https://api.github.com/users/steven-murray/events{/privacy}","received_events_url":"https://api.github.com/users/steven-murray/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T03:34:58Z","updated_at":"2015-11-20T03:34:58Z","body":"Hi Shuo,\n\nThat is odd, since the tests seem to pass on my machine. What it means is\nthat the integral of the mass-weighted Press-Schechter function is not\nequalling the total mean density, which it should.\n\nTry installing hmf like this: ``pip install git+git://\ngithub.com/steven-murray/hmf.git@develop``. This will install the latest\ndevelopment version. To run the tests, clone the develop branch, and run\n\"nosetests -v\" in the top directory. If that still fails, let me know!\n\nCheers,\nSteven\n\nOn Thu, Nov 19, 2015 at 8:55 PM, yuanshuoastro <notifications@github.com>\nwrote:\n\n> Hi Steven,\n> I install the pycamb and hmf(release1.8.0) from you github.\n> No errors during installing. But when I try the py.test in your ./test\n> dir, I meet the Failure:\n>\n> =================================== FAILURES\n> ===================================\n> ___________________________ TestFcoll.test_fcolls[0]\n> ___________________________\n>\n> self =\n> pert = , fit = 'PS'\n>\n> def check_fcoll(self, pert, fit):\n>     if fit == \"PS\":\n>         anl = fcoll_PS(np.sqrt(pert.nu))\n>         num = pert.rho_gtm / pert.mean_dens\n>\n>     elif fit == \"Peacock\":\n>         anl = fcoll_Peacock(np.sqrt(pert.nu))\n>         num = pert.rho_gtm / pert.mean_dens\n>\n>     err = np.abs((num - anl) / anl)\n>     print np.max(err)\n>     print num / anl - 1\n>\n>   assert np.max(err) < 0.05\n>\n> E assert 1.1693592892307125 < 0.05\n> E + where 1.1693592892307125 = (array([ 2.46884309e-01, 2.46889912e-01,\n> 2.46894728e-01,\\n 2.468987... 1.09377128e+00, 1.11834393e+00,\\n\n> 1.14353402e+00, 1.16935929e+00]))\n> E + where = np.max\n>\n> Do you think it is OK? What else should I do?\n>\n> Thanks!\n> Shuo\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/steven-murray/hmf/issues/17>.\n>\n"}}