Skip to content

TypeError: Graphic.__init__() got an unexpected keyword argument 'vmin_vmax_sliders' #240

@qweasdf1354

Description

@qweasdf1354

Hi author, i have some issues, could you help me to resovle?

the system is window10 and i run the installation protocal from the github page using anaconda.

when i run the mcorr_cnmf.ipynb, i can run the code until the 'Visualize raw & MCorr movie side-by-side' step.

**when i run the following cell**
 'mcorr_iw = fpl.ImageWidget(
    data=[input_movie, mcorr_movie], 
    vmin_vmax_sliders=True, 
    cmap="gnuplot2"
)
mcorr_iw.show()'

**the following error occur**

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[60], line 1
----> 1 mcorr_iw = fpl.ImageWidget(
      2     data=[input_movie, mcorr_movie], 
      3     vmin_vmax_sliders=True, 
      4     cmap="gnuplot2"
      5 )
      6 mcorr_iw.show()

File D:\software\fastplotlib\fastplotlib\widgets\image.py:554, in ImageWidget.__init__(self, data, dims_order, slider_dims, window_funcs, frame_apply, grid_shape, names, grid_plot_kwargs, **kwargs)
    552 frame = self._process_indices(d, slice_indices=self._current_index)
    553 frame = self._process_frame_apply(frame, data_ix)
--> 554 ig = ImageGraphic(frame, name="image_widget_managed", **kwargs)
    555 subplot.add_graphic(ig)
    556 subplot.name = name

File D:\software\fastplotlib\fastplotlib\graphics\image.py:259, in ImageGraphic.__init__(self, data, vmin, vmax, cmap, filter, isolated_buffer, *args, **kwargs)
    201 def __init__(
    202     self,
    203     data: Any,
   (...)
    210     **kwargs,
    211 ):
    212     """
    213     Create an Image Graphic
    214 
   (...)
    256 
    257     """
--> 259     super().__init__(*args, **kwargs)
    261     data = to_gpu_supported_dtype(data)
    263     # TODO: we need to organize and do this better

TypeError: Graphic.__init__() got an unexpected keyword argument 'vmin_vmax_sliders'

I try to search the similar situation, but it seems it is none, so could you help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions