nguyen1j / py-fcm

Automatically exported from code.google.com/p/py-fcm
0 stars 0 forks source link

fcm.get_markers() does not work because self.pnts is missing #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. n [14]: f1.get_markers()

What is the expected output? What do you see instead?

--------------------------------------------------------------------------
-
AttributeError                            Traceback (most recent call last)

/Users/cliburn/hg/sfi/src/<ipython console> in <module>()

/Users/cliburn/MyPython/fcm/core/fcmdata.pyc in get_markers(self)
     63         """return the data associated with all the markers"""
     64 
---> 65         return self.pnts[:, self.markers]
     66 
     67     def __getitem__(self, item):

/Users/cliburn/MyPython/fcm/core/fcmdata.pyc in __getattr__(self, name)
    123 
    124     def __getattr__(self, name):
--> 125         return self.tree.view().__getattribute__(name)
    126 
    127 

AttributeError: 'numpy.ndarray' object has no attribute 'pnts

Please use labels and text to provide additional information.

Original issue reported on code.google.com by cliburn....@gmail.com on 16 Aug 2009 at 10:32

GoogleCodeExporter commented 8 years ago

Original comment by Jacob.Frelinger@gmail.com on 17 Aug 2009 at 2:23

GoogleCodeExporter commented 8 years ago
with my latest commit:
In [1]: import fcm

In [2]: f1 = 
fcm.loadFCS('/home/jolly/Projects/fcm/sample_data/3FITC_4PE_004.fcs')

In [3]: f1.get_markers()
Out[3]: 
array([[234,  58, 648, 487],
       [503, 239, 287, 613],
       [511, 542, 305, 180],
       ..., 
       [721, 576, 342, 220],
       [268,  47, 628, 455],
       [320,  62, 152, 119]])

Fixed.

Original comment by Jacob.Frelinger@gmail.com on 17 Aug 2009 at 2:30