{"action":"created","issue":{"url":"https://api.github.com/repos/lingpy/lingpy/issues/181","labels_url":"https://api.github.com/repos/lingpy/lingpy/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/lingpy/lingpy/issues/181/comments","events_url":"https://api.github.com/repos/lingpy/lingpy/issues/181/events","html_url":"https://github.com/lingpy/lingpy/issues/181","id":116494819,"number":181,"title":"Error in msa.lib_align","user":{"login":"cysouw","id":1079786,"avatar_url":"https://avatars.githubusercontent.com/u/1079786?v=3","gravatar_id":"","url":"https://api.github.com/users/cysouw","html_url":"https://github.com/cysouw","followers_url":"https://api.github.com/users/cysouw/followers","following_url":"https://api.github.com/users/cysouw/following{/other_user}","gists_url":"https://api.github.com/users/cysouw/gists{/gist_id}","starred_url":"https://api.github.com/users/cysouw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cysouw/subscriptions","organizations_url":"https://api.github.com/users/cysouw/orgs","repos_url":"https://api.github.com/users/cysouw/repos","events_url":"https://api.github.com/users/cysouw/events{/privacy}","received_events_url":"https://api.github.com/users/cysouw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lingpy/lingpy/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-12T07:22:59Z","updated_at":"2015-11-12T07:53:03Z","closed_at":"2015-11-12T07:53:03Z","body":"I get the following error, which I cannot fix...\r\n\r\n```\r\nfrom lingpy import *\r\nwith open ('test.txt') as f:\r\n    seqs = f.read().splitlines()\r\nmsa = Multiple(seqs)\r\nmsa.lib_align(gop = -5)\r\n```\r\n\r\nerror message:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python3.5/site-packages/lingpy-2.4.2-py3.5.egg/lingpy/align/multiple.py\", line 975, in lib_align\r\n    run[0], run[1], run[2], kw['factor'], kw['restricted_chars'])\r\n  File \"/usr/local/lib/python3.5/site-packages/lingpy-2.4.2-py3.5.egg/lingpy/align/multiple.py\", line 332, in _get_pairwise_alignments\r\n    mode)\r\n  File \"/usr/local/lib/python3.5/site-packages/lingpy-2.4.2-py3.5.egg/lingpy/algorithm/cython/_calign.py\", line 1188, in align_pairwise\r\n    dist = 1 - ( 2 * sim / ( simA + simB ) )\r\nZeroDivisionError: float division by zero\r\n```\r\n\r\n[test.txt](https://github.com/lingpy/lingpy/files/32631/test.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/lingpy/lingpy/issues/comments/156027823","html_url":"https://github.com/lingpy/lingpy/issues/181#issuecomment-156027823","issue_url":"https://api.github.com/repos/lingpy/lingpy/issues/181","id":156027823,"user":{"login":"cysouw","id":1079786,"avatar_url":"https://avatars.githubusercontent.com/u/1079786?v=3","gravatar_id":"","url":"https://api.github.com/users/cysouw","html_url":"https://github.com/cysouw","followers_url":"https://api.github.com/users/cysouw/followers","following_url":"https://api.github.com/users/cysouw/following{/other_user}","gists_url":"https://api.github.com/users/cysouw/gists{/gist_id}","starred_url":"https://api.github.com/users/cysouw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cysouw/subscriptions","organizations_url":"https://api.github.com/users/cysouw/orgs","repos_url":"https://api.github.com/users/cysouw/repos","events_url":"https://api.github.com/users/cysouw/events{/privacy}","received_events_url":"https://api.github.com/users/cysouw/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T07:53:03Z","updated_at":"2015-11-12T07:53:03Z","body":"OK. got it"}}