Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
indebetouw opened this issue Mar 30, 2016 · 1 comment

Comments

@indebetouw
Copy link

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'
@dcolombo
Copy link
Contributor

dcolombo commented Apr 4, 2016

Thanks for catching that! Indeed, it was a version conflict. It has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants