Skip to content

version collision with dendro:? TypeError: 'Structure' object does not support indexing #11

@indebetouw

Description

@indebetouw

Hi - thanks for the cool software!
I'm hoping this is just user error, but I can't seem to display my tree:

In [18]: dclust.showdendro()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-18-962aab89e474> in <module>()
----> 1 dclust.showdendro()

/Library/Python/2.7/site-packages/scimes/scimes.pyc in showdendro(self, cores_idx)
    941             col = '#%02X%02X%02X' % (r(),r(),r())
    942             cols.append(col)
--> 943             p.plot_tree(ax, structure=dendro[cores_idx[i]], color=cols[i], lw=3)
    944
    945         ax.set_title("Final clustering configuration")

/Users/ri3e/Library/Python/2.7/lib/python/site-packages/astrodendro-0.1.0-py2.7.egg/astrodendro/plot.pyc in plot_tree(self, ax, structure, subtree, autoscale, **kwargs)
    101
    102         # Get the lines for the dendrogram
--> 103         lines = self.get_lines(structures=structure, **kwargs)
    104
    105         # Add the lines to the axes

/Users/ri3e/Library/Python/2.7/lib/python/site-packages/astrodendro-0.1.0-py2.7.egg/astrodendro/plot.pyc in get_lines(self, structures, subtree, **kwargs)
    191         else:
    192             if subtree:
--> 193                 if type(structures[0]) is int:
    194                     structure = self.dendrogram[structures[0]]
    195                 else:

TypeError: 'Structure' object does not support indexing

In [19]: import astrodendro

In [20]: astrodendro.__version__
Out[20]: '0.1.0'

In [21]: import scimes

In [22]: scimes.__version__
Out[22]: u'0.2.0'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions