I am using the napari library to visualice 3D data. I would like to include the " depiction='volume' " keyword when adding an image layer:
viewer.add_image(recon_adf, name='adf', opacity=0.3, depiction='volume');
Which I did before in another computer and it worked.
However, in a new computer I am getting the following error message:
ViewerModel.add_image() got an unexpected keyword argument 'depiction'
If I do not put the depiction='volume' argument, it works, and napari opens properly. However, when I want to visualice the data in 3d it looks odd if I have several data sets that I want to visualice simultaneously.
These are the details of the version I am running:
napari: 0.4.14
Platform: Windows-10-10.0.22000-SP0
Python: 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:30:19) [MSC v.1929 64 bit (AMD64)]
Qt: 5.15.4
PyQt5: 5.15.7
NumPy: 1.22.3
SciPy: 1.9.1
Dask: 2022.9.1
VisPy: 0.10.0
OpenGL:
GL version: 4.6.0 - Build 30.0.101.2079
MAX_TEXTURE_SIZE: 16384
Screens:
screen 1: resolution 1680x1050, scale 1.0
screen 2: resolution 1680x1050, scale 1.0
Plugins:
animation: 0.0.2
console: 0.0.6
scikit-image: 0.4.16
svg: 0.1.6
I would appreciate if you could indicate me how to solve the issue. I have tried uninstalling and reinstalling napari, but it didnt solve it.
Thanks in advance