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

new (?) Clusters issue when installing via pip+setuptools from pyproject.toml #128

Open
mmagnuski opened this issue Oct 29, 2023 · 0 comments

Comments

@mmagnuski
Copy link
Owner

Not sure if the install (pip+setuptools from pyproject.toml to a new conda env) is relevant here, but I detected it in this context:

        # line plot
        # ---------
>       ax = clst.plot(dims='time')

borsar\cluster\tests\test_cluster.py:921:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
borsar\cluster\obj.py:632: in plot
    return plot_cluster_chan(self, picks, dims=dims, vmin=vmin,
borsar\cluster\viz.py:286: in plot_cluster_chan
    _mark_cluster_range(clst_mask, x_axis, ax)
borsar\cluster\utils.py:149: in _mark_cluster_range
    ax.add_patch(ptch)
C:\Users\Asus\miniconda3\envs\test_env1\Lib\site-packages\matplotlib\axes\_base.py:2384: in add_patch
    self._update_patch_limits(p)
C:\Users\Asus\miniconda3\envs\test_env1\Lib\site-packages\matplotlib\axes\_base.py:2415: in _update_patch_limits
    patch_trf = patch.get_transform()
C:\Users\Asus\miniconda3\envs\test_env1\Lib\site-packages\matplotlib\patches.py:261: in get_transform
    return self.get_patch_transform() + artist.Artist.get_transform(self)
C:\Users\Asus\miniconda3\envs\test_env1\Lib\site-packages\matplotlib\patches.py:751: in get_patch_transform
    bbox = self.get_bbox()
C:\Users\Asus\miniconda3\envs\test_env1\Lib\site-packages\matplotlib\patches.py:882: in get_bbox
    return transforms.Bbox.from_extents(*self._convert_units())
C:\Users\Asus\miniconda3\envs\test_env1\Lib\site-packages\matplotlib\transforms.py:829: in from_extents
    bbox = Bbox(np.reshape(args, (2, 2)))
C:\Users\Asus\miniconda3\envs\test_env1\Lib\site-packages\numpy\core\fromnumeric.py:285: in reshape
    return _wrapfunc(a, 'reshape', newshape, order=order)
C:\Users\Asus\miniconda3\envs\test_env1\Lib\site-packages\numpy\core\fromnumeric.py:56: in _wrapfunc
    return _wrapit(obj, method, *args, **kwds)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

obj = (0.2014705882352941, 0.3350214902538469, array([0.325]), array([0.77099494])), method = 'reshape'
args = ((2, 2),), kwds = {'order': 'C'}, wrap = None

    def _wrapit(obj, method, *args, **kwds):
        try:
            wrap = obj.__array_wrap__
        except AttributeError:
            wrap = None
>       result = getattr(asarray(obj), method)(*args, **kwds)
E       ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part.

C:\Users\Asus\miniconda3\envs\test_env1\Lib\site-packages\numpy\core\fromnumeric.py:45: ValueError
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

1 participant