etetoolkit / ete

Python package for building, comparing, annotating, manipulating and visualising trees. It provides a comprehensive API and a collection of command line tools, including utilities to work with the NCBI taxonomy tree.
http://etetoolkit.org
GNU General Public License v3.0
773 stars 216 forks source link

PieChartFace' object has no attribute 'tooltip' #650

Open dengzq1234 opened 1 year ago

dengzq1234 commented 1 year ago

In the draw() function under CircleFace() class, it requires to fetch the self.tooltip from the object, but the PieChartFace() class doesn't have default attribute as tooltip hence it has the follow error

File "/home/deng/Projects/ete4/hackathon/ete4/ete4/smartview/renderer/faces.py", line 398, in draw
    self.name, style=style, tooltip=self.tooltip)
AttributeError: 'PieChartFace' object has no attribute 'tooltip'

I insert self.tooltip = None in line 1543 of faces.py to solve the problem temporaily