{"action":"created","issue":{"url":"https://api.github.com/repos/sysbio-vo/bnfinder/issues/6","repository_url":"https://api.github.com/repos/sysbio-vo/bnfinder","labels_url":"https://api.github.com/repos/sysbio-vo/bnfinder/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/sysbio-vo/bnfinder/issues/6/comments","events_url":"https://api.github.com/repos/sysbio-vo/bnfinder/issues/6/events","html_url":"https://github.com/sysbio-vo/bnfinder/issues/6","id":377013618,"node_id":"MDU6SXNzdWUzNzcwMTM2MTg=","number":6,"title":"ZeroDivisionError: float division by zero","user":{"login":"spadavec","id":3453650,"node_id":"MDQ6VXNlcjM0NTM2NTA=","avatar_url":"https://avatars1.githubusercontent.com/u/3453650?v=4","gravatar_id":"","url":"https://api.github.com/users/spadavec","html_url":"https://github.com/spadavec","followers_url":"https://api.github.com/users/spadavec/followers","following_url":"https://api.github.com/users/spadavec/following{/other_user}","gists_url":"https://api.github.com/users/spadavec/gists{/gist_id}","starred_url":"https://api.github.com/users/spadavec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spadavec/subscriptions","organizations_url":"https://api.github.com/users/spadavec/orgs","repos_url":"https://api.github.com/users/spadavec/repos","events_url":"https://api.github.com/users/spadavec/events{/privacy}","received_events_url":"https://api.github.com/users/spadavec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-11-03T02:04:47Z","updated_at":"2018-11-25T14:29:27Z","closed_at":null,"author_association":"NONE","body":"When using the most recent version of BNF I get the following error: \r\n\r\n```\r\nLoading data from: bnfity.csv ...\r\nTraceback (most recent call last):\r\n  File \"/home/spadavec/miniconda2/envs/rdkit/bin/bnf\", line 4, in <module>\r\n    __import__('pkg_resources').run_script('BNfinder==2.2.0', 'bnf')\r\n  File \"/home/spadavec/miniconda2/envs/rdkit/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 750, in run_script\r\n    self.require(requires)[0].run_script(script_name, ns)\r\n  File \"/home/spadavec/miniconda2/envs/rdkit/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1534, in run_script\r\n    exec(script_code, namespace, namespace)\r\n  File \"/home/spadavec/miniconda2/envs/rdkit/lib/python2.7/site-packages/BNfinder-2.2.0-py2.7.egg/EGG-INFO/scripts/bnf\", line 45, in <module>\r\n    \r\n  File \"build/bdist.linux-x86_64/egg/BNfinder/data.py\", line 545, in fromNewFile\r\n  File \"build/bdist.linux-x86_64/egg/BNfinder/continuous.py\", line 119, in estimate\r\n  File \"build/bdist.linux-x86_64/egg/BNfinder/stats.py\", line 247, in __call__\r\n  File \"build/bdist.linux-x86_64/egg/BNfinder/stats.py\", line 297, in lmean\r\nZeroDivisionError: float division by zero\r\n```\r\n\r\nIs this a known error? my CSV contains continuous expression values"},"comment":{"url":"https://api.github.com/repos/sysbio-vo/bnfinder/issues/comments/441444658","html_url":"https://github.com/sysbio-vo/bnfinder/issues/6#issuecomment-441444658","issue_url":"https://api.github.com/repos/sysbio-vo/bnfinder/issues/6","id":441444658,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTQ0NDY1OA==","user":{"login":"alnf","id":2435340,"node_id":"MDQ6VXNlcjI0MzUzNDA=","avatar_url":"https://avatars2.githubusercontent.com/u/2435340?v=4","gravatar_id":"","url":"https://api.github.com/users/alnf","html_url":"https://github.com/alnf","followers_url":"https://api.github.com/users/alnf/followers","following_url":"https://api.github.com/users/alnf/following{/other_user}","gists_url":"https://api.github.com/users/alnf/gists{/gist_id}","starred_url":"https://api.github.com/users/alnf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alnf/subscriptions","organizations_url":"https://api.github.com/users/alnf/orgs","repos_url":"https://api.github.com/users/alnf/repos","events_url":"https://api.github.com/users/alnf/events{/privacy}","received_events_url":"https://api.github.com/users/alnf/received_events","type":"User","site_admin":false},"created_at":"2018-11-25T14:29:27Z","updated_at":"2018-11-25T14:29:27Z","author_association":"MEMBER","body":"Are you sure it's python 2.6, in your env I see it's python 2.7.13.\r\n\r\nBut more importantly your launch arguments are not exactly correct. If you want output files with the suboptimal parents sets, network structure, and conditional probability, it should be:\r\n\r\n`bnf -e bnfinput.txt -n output.sif -c outputcpd.txt -t output_plain.txt`\r\n\r\nMore precisely, it's either `-t` or `--txt`, and after `-c` there should be a file name.\r\n\r\nCan you please try to run the simplest case with example input:\r\n\r\n`bnf -e doc/data/input1.txt -n output.sif -v`\r\n\r\nAlso, how exactly did you install/launch bnfinder? Are you sure it's the latest version from github?"}}
{"actor":{"display_login":"alnf"}}