CBI-PITT / napari-imaris-loader

BSD 3-Clause "New" or "Revised" License
6 stars 7 forks source link

How to use it in python code? #11

Open superhy opened 1 year ago

superhy commented 1 year ago

import napari_imaris_loader

def _test_view_imaris_tissue(): viewer = napari.Viewer()

viewer = napari_imaris_loader.reader()

# Load your .ims file into the viewer
viewer.open('my_file.ims', plugin=napari_imaris_loader)
# explore and analyze your data in the viewer
napari.run()

With the error: AttributeError: 'function' object has no attribute 'partition'

So, if I would like to open .ims file in Python, how can I apply the napari_imaris_loader plugin in the napari function?

AlanMWatson commented 1 year ago

I am afraid without more context I am not able to help.

Here is the napari hub page which shows that you can open an ims from within napari. You can also drag the file into the viewer.

https://www.napari-hub.org/plugins/napari-imaris-loader

The loader was built around python 3.8. Try installing napari in a fresh 3.8 venv.


From: superhy @.> Sent: Friday, September 15, 2023 6:38:36 AM To: CBI-PITT/napari-imaris-loader @.> Cc: Subscribed @.***> Subject: [CBI-PITT/napari-imaris-loader] How to use it in python code? (Issue #11)

import napari_imaris_loader

def _test_view_imaris_tissue(): viewer = napari.Viewer()

viewer = napari_imaris_loader.reader()

Load your .ims file into the viewer

viewer.open('my_file.ims', plugin=napari_imaris_loader)

explore and analyze your data in the viewer

napari.run()

With the error: AttributeError: 'function' object has no attribute 'partition'

So, if I would like to open .ims file in Python, how can I apply the napari_imaris_loader plugin in the napari function?

— Reply to this email directly, view it on GitHubhttps://github.com/CBI-PITT/napari-imaris-loader/issues/11, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKLXU4VL2VJWSKCWUCPEDITX2QV2ZANCNFSM6AAAAAA4ZTUEPU. You are receiving this because you are subscribed to this thread.Message ID: @.***>