Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

HistogramWidget: 'MultiScaleData' object has no attribute 'ndim' #251

Open
Labels
BugSomething isn't working
@dstansby

Description

@dstansby

Getting this error trying to useHistogramWidget with some zarr data loaded into napari:

File~/miniconda3/lib/python3.11/site-packages/napari_matplotlib/histogram.py:72,inHistogramWidget.draw(self=<napari_matplotlib.histogram.HistogramWidgetobject>)67"""     68 Clear the axes and histogram the currently selected layer/slice.     69 """70layer=self.layers[0]--->72iflayer.data.ndim-layer.rgb==3:layer=<Imagelayer'full_rebinned_4'at0x16d1ad390>layer.rgb=False73# 3D data, can be single channel or RGB74data=layer.data[self.current_z]75self.axes.set_title(f"z={self.current_z}")AttributeError:'MultiScaleData'objecthasnoattribute'ndim'

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp