sephonlee / PhyloParser

Automatically read tree structure from image format
http://viziometrics.org/about/
MIT License
2 stars 1 forks source link

makeLinesFromCorner - RuntimeWarning #2

Open lcscs12345 opened 5 years ago

lcscs12345 commented 5 years ago

Hi,

First of all thank you for sharing your tool that can reliably parse tree images. I got the image_data.treeStructure at the end with the following warnings. However, the image_data.treeStructure has no branch length (only species name and tree topology). Is the leaf length information ignored during parsing?

>>> phyloParser = PhyloParser(clfPath = clfPath) Loading classifier from model/RF.pkl model not loaded model/RF.pkl

>>> image_data = phyloParser.includeLinesFromCorners(image_data) /home/user/lib/python2.7/site-packages/numpy/core/fromnumeric.py:3146: RuntimeWarning: Degrees of freedom <= 0 for slice **kwargs) /home/user/lib/python2.7/site-packages/numpy/core/_methods.py:105: RuntimeWarning: invalid value encountered in true_divide arrmean, rcount, out=arrmean, casting='unsafe', subok=False) /home/user/lib/python2.7/site-packages/numpy/core/_methods.py:127: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount) /home/user/lib/python2.7/site-packages/numpy/core/fromnumeric.py:2909: RuntimeWarning: Mean of empty slice. out=out, **kwargs) /home/user/lib/python2.7/site-packages/numpy/core/_methods.py:80: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount)