Ticket #719 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Classification tree export in GraphViz DOT format fails

Reported by: garmonbozia Owned by: marko
Milestone: Future Component: canvas
Severity: minor Keywords:
Cc: Blocking:
Blocked By:


Create a simple schema, add a file component, a classification tree, and a classification graph component. Open the graph view and try to save the graph as DOT file.

An exception will be thrown:

Unhandled exception of type AttributeError occured at 9:27:34:
  File: OWTreeViewer2D.py, line 631 in saveDot
  Code: orngTree.printDot(self.tree, filename)
    File: orngTree.py, line 38 in dot
    Code: leafShape=leafShape, nodeShape=nodeShape, fle=fle).dotTree()
      File: tree.py, line 2788 in __init__
      Code: if tree.classVar.varType == Orange.data.Type.Discrete:
        AttributeError: 'Orange.classification.tree.Node' has no attribute 'class_var' 


orange_classification_export_bug.zip Download (3.3 KB) - added by garmonbozia 3 years ago.

Change History

Changed 3 years ago by garmonbozia

comment:1 Changed 3 years ago by marko

  • Owner set to marko
  • Status changed from new to assigned

comment:2 Changed 3 years ago by marko

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.