Open superhy opened 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.open('my_file.ims', plugin=napari_imaris_loader)
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: @.***>
import napari_imaris_loader
def _test_view_imaris_tissue(): viewer = napari.Viewer()
viewer = napari_imaris_loader.reader()
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?