linnarsson-lab / loom-viewer

Tool for sharing, browsing and visualizing single-cell data stored in the Loom file format
BSD 2-Clause "Simplified" License
35 stars 6 forks source link

LoomConnection.__repr_html__ seem to be broken #82

Closed gioelelm closed 7 years ago

gioelelm commented 7 years ago

It looks for schema, probably was not updated.

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/home/gioele/anaconda2/envs/py35-env/lib/python3.5/site-packages/IPython/core/formatters.py in __call__(self, obj)
    309             method = get_real_method(obj, self.print_method)
    310             if method is not None:
--> 311                 return method()
    312             return None
    313         else:

/home/gioele/anaconda2/envs/py35-env/lib/python3.5/site-packages/loompy-0.22.22-py3.5.egg/loompy/loompy.py in _repr_html_(self)
    508                         for ra in self.row_attrs.keys():
    509                                 html += "<td>&nbsp;</td>"  # Space for row attrs
--> 510                         html += "<td><strong>" + ca + ":" + self.schema["col_attrs"][ca] + "</strong></td>"  # Col attr name
    511                         for v in self.col_attrs[ca][:cm]:
    512                                 html += "<td>" + str(v) + "</td>"

AttributeError: 'LoomConnection' object has no attribute 'schema'
slinnarsson commented 7 years ago

Fixed, and updated to 0.22.23

/Sten

-- Sten Linnarsson, PhD Professor of Molecular Systems Biology Karolinska Institutet Unit of Molecular Neurobiology Department of Medical Biochemistry and Biophysics Scheeles väg 1, 171 77 Stockholm, Sweden +46 8 52 48 75 77 (office) +46 70 399 32 06 (mobile)

On 17 Jan 2017, at 11:53, Gioele La Manno notifications@github.com wrote:

It looks for schema, probably was not updated.


AttributeError Traceback (most recent call last) /home/gioele/anaconda2/envs/py35-env/lib/python3.5/site-packages/IPython/core/formatters.py in call(self, obj) 309 method = get_real_method(obj, self.print_method) 310 if method is not None: --> 311 return method() 312 return None 313 else:

/home/gioele/anaconda2/envs/py35-env/lib/python3.5/site-packages/loompy-0.22.22-py3.5.egg/loompy/loompy.py in _reprhtml(self) 508 for ra in self.row_attrs.keys(): 509 html += " " # Space for row attrs --> 510 html += "" + ca + ":" + self.schema["col_attrs"][ca] + "" # Col attr name 511 for v in self.col_attrs[ca][:cm]: 512 html += "" + str(v) + ""

AttributeError: 'LoomConnection' object has no attribute 'schema'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.