Skip to content

FIX THIS DAMN REGION PROPS BUG #57

Open
@hughesadam87

Description

Traceback (most recent call last):
File "/home/adam/Desktop/pyparty/pyparty/logging_utils/logger.py", line 219, in _wraps
return fcn(_args, *_kwargs)
File "/home/adam/Desktop/pyparty/pyparty/scripts/objectmodeling/objecthunt.py", line 178, in run_main
MPLOT('multihist', 'hist', 'multihistkwds', multidir)
File "/home/adam/Desktop/pyparty/pyparty/scripts/objectmodeling/objecthunt.py", line 85, in wrapper
func(_args, *_kwargs)
File "/home/adam/Desktop/pyparty/pyparty/scripts/objectmodeling/objecthunt.py", line 150, in MPLOT
mcpltfcn(**mcpltkwds)
File "/home/adam/Desktop/pyparty/pyparty/multi.py", line 445, in hist
attr_list = [getattr(c, attr) for c in self.canvii]
File "/home/adam/Desktop/pyparty/pyparty/tools/canvas.py", line 971, in getattr
return getattr(self._particles, attr)
File "/home/adam/Desktop/pyparty/pyparty/tools/manager.py", line 413, in getattr
out = tuple(getattr(p, attr) for p in self.plist)
File "/home/adam/Desktop/pyparty/pyparty/tools/manager.py", line 413, in
out = tuple(getattr(p, attr) for p in self.plist)
File "/home/adam/Desktop/pyparty/pyparty/trait_types/metaparticle.py", line 61, in getattr
return self.particle.ski_descriptor(attr)
File "/home/adam/Desktop/pyparty/pyparty/shape_models/abstract_shape.py", line 119, in ski_descriptor
self._ski_descriptor = regionprops(self.boxed(), cache=True)[0]
File "/home/adam/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/skimage/measure/_regionprops.py", line 494, in regionprops
raise TypeError('Only 2-D images supported.')
TypeError: Only 2-D images supported.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions