Closed alephreish closed 9 years ago
Hi har-wradim!
The bug has been fixed. You can pull the current version of Hive Plotter.
Thanks for letting me know!
Sarah
Sarah Perez Masters of Bioinformatics Candidate University of British Columbia T: 604-842-6751 http://munchaholic.wordpress.com/ https://github.com/sperez8/
On Wed, Sep 17, 2014 at 12:47 AM, har-wradim notifications@github.com wrote:
Hello Sarah,
I'm experiencing the following bug (Python 2.7.5, Ubuntu): when pressing the "Submit network" button, the "Number of colors to draw edges" doesn't get updated. The problem is with a call to check_nodes (hive.py: 146). If I comment that line out, everything goes smoothly:
Updating parameters Nodes are: Alice,Bob,Cam,Daniella,Eric,Fatima,George,Harry,Isabelle,Jack Node properties are: Gender ['girl', 'boy', 'boy', 'girl', 'boy', 'girl', 'alien', 'alien', 'alien', 'boy'] Height [1, 0.2, 0.9, 0.8, 1, 0.9, 0.9, 0.7, 0.3, 0.5] Nodes are: Alice,Bob,Cam,Daniella,Eric,Fatima,George,Harry,Isabelle,Jack Node properties are: Gender ['girl', 'boy', 'boy', 'girl', 'boy', 'girl', 'alien', 'alien', 'alien', 'boy'] Height [1, 0.2, 0.9, 0.8, 1, 0.9, 0.9, 0.7, 0.3, 0.5] Sources are: ['Cam', 'Daniella', 'Daniella', 'Eric', 'Cam', 'Fatima', 'Alice', 'Bob', 'Bob', 'Jack', 'Harry', 'Harry', 'George', 'Isabelle', 'Isabelle', 'Fatima'] Targets are: ['Fatima', 'Alice', 'Eric', 'Bob', 'Alice', 'Alice', 'George', 'George', 'Fatima', 'Isabelle', 'Jack', 'George', 'Isabelle', 'Alice', 'Fatima', 'Jack'] Edge properties are: {'friendshipstrength': [44.1, 98.2, 34.1, 20.3, 14.2, 80.1, 30.1, 45.3, 56.4, 10.4, 64.2, 45.8, 61.3, 45.6, 24.3, 23.4], 'relationship': ['friends', 'enemies', 'enemies', 'friends', 'friends', 'enemies', 'enemies', 'friends', 'friends', 'enemies', 'enemies', 'enemies', 'enemies', 'friends', 'friends', 'friends']} Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1473, in call return self.func(*args) File "scripts/gui/gui.py", line 189, in update_styling numColors = get_num_colors(self.edges, style) File "/opt/HivePlotter/scripts/gui/gui_utilities.py", line 56, in get_num_colors properties = hive.get_edges(edgefile)[style] File "/opt/HivePlotter/scripts/hive.py", line 146, in get_edges self.check_nodes(self.sources, self.targets, self.nodes) AttributeError: Hive instance has no attribute 'nodes'
— Reply to this email directly or view it on GitHub https://github.com/sperez8/HivePlotter/issues/1.
Ok
Hello Sarah,
I'm experiencing the following bug (Python 2.7.5, Ubuntu): when pressing the "Submit network" button, the "Number of colors to draw edges" doesn't get updated. The problem is with a call to check_nodes (hive.py: 146). If I comment that line out, everything goes smoothly: