Skip to content

'NoneType' object has no attribute 'selectSlice' #39

@pinilorenzo

Description

@pinilorenzo

Dear Devs,

I am currently trying to use abba-python (on Linux 20.04) for registering mouse slices. I followed the instructions provided on the ReadTheDocs (including setting up the environment using Conda). I also downloaded the Fiji (Linux 64-bit) distribution, but I’m unsure how to properly use it or if it needs to be placed in a specific path.

This is my code:

basePath = '/user/images/
myimages = [ '/3994_1.tiff', '/3994_2.tiff', '/3994_3.tiff', '/3994_4.tiff', /3994_5.tiff']
image_mouse = [basePath + section for section in myimages]
aligner.import_from_files(filepaths=image_mouse)
aligner.select_all_slices()


AttributeError Traceback (most recent call last)
Cell In[8], line 2
1 #.get()
----> 2 aligner.select_all_slices()

File ~/anaconda3/envs/abba-env/lib/python3.10/site-packages/abba_python/abba.py:450, in Abba.select_all_slices(self)
449 def select_all_slices(self):
--> 450 self.mp.selectSlice(self.mp.getSlices())

AttributeError: 'NoneType' object has no attribute 'selectSlice'

The object passed to "select_all_slices" seems empty.

Indeed, the output of:
print(aligner.mp)
is 'None'

Thank you in advance for your help!
Thanks a lot
Lorenzo

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