Skip to content

Notebooks currently non functional #14

@NicoKiaru

Description

@NicoKiaru

I get this error in the first example notebook:

4. DeepSlice Registration(s)[¶](http://localhost:8888/lab/workspaces/auto-C/tree/Dropbox/BIOP/abba_python/example_notebooks/0.%20Register%20And%20Save%20State.ipynb#4.-DeepSlice-Registration(s))

# a first deepslice registration round : possible because it's the Allen CCF atlas, cut in coronal mode

# what's assumed : the sections are already in the correct order

aligner.register_slices_deepslice_local(channels=[0, 1],

                                  ensemble=False,

                                  model='mouse',

                                  post_processing='Keep order + ensure regular spacing',

                                  slices_spacing_micrometer=-1,      

                                  allow_slicing_angle_change=True) # use run_mode='Web' if you are not headless and without a local deepslice env

​

#allow_slicing_angle_change: bool,

#                                        channels: str,

#                                        ensemble: bool,

#                                        model: str,

#                                        post_processing: str,

#                                        slices_spacing_micrometer: float

​

# second deepslice registration: because the slices are resampled for the registration,

# we usually get a slightly better positioning along z and cutting angle

# also: it's fast, and the combination of two affine transforms is

# an affine transform, so it's not like we are adding extra degrees of freedom

# aligner.register_slices_deepslice(channels=[0, 1],

#                                  maintain_slices_order = True, # the slices are already sorted: do not mess the order

#                                  run_mode='local') # use run_mode='web' if you are not headless and without a local deepslice env

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[13], line 3
      1 # a first deepslice registration round : possible because it's the Allen CCF atlas, cut in coronal mode
      2 # what's assumed : the sections are already in the correct order
----> 3 aligner.register_slices_deepslice_local(channels=[0, 1],
      4                                   ensemble=False,
      5                                   model='mouse',
      6                                   post_processing='Keep order + ensure regular spacing',
      7                                   slices_spacing_micrometer=-1,      
      8                                   allow_slicing_angle_change=True) # use run_mode='Web' if you are not headless and without a local deepslice env
     10 #allow_slicing_angle_change: bool,
     11 #                                        channels: str,
     12 #                                        ensemble: bool,
   (...)
     22 #                                  maintain_slices_order = True, # the slices are already sorted: do not mess the order
     23 #                                  run_mode='local') # use run_mode='web' if you are not headless and without a local deepslice env

File ~\AppData\Local\abba-python-0.8.0\lib\site-packages\abba_python\abba.py:834, in Abba.register_slices_deepslice_local(self, allow_slicing_angle_change, channels, ensemble, model, post_processing, slices_spacing_micrometer)
    821 """
    822 Uses Deepslice for affine in plane and axial registration of selected slices
    823 
   (...)
    830 slices_spacing_micrometer (float): Spacing (micrometer), used only when 'Keep order + set spacing' is selected
    831 """
    832 RegisterSlicesDeepSliceLocalCommand = jimport(
    833     'ch.epfl.biop.atlas.aligner.command.RegisterSlicesDeepSliceLocalCommand')
--> 834 return self.ij.command().run(RegisterSlicesDeepSliceLocalCommand, True,
    835                              'mp', self.mp,
    836                              'allow_slicing_angle_change', allow_slicing_angle_change,
    837                              'channels', channels,
    838                              'ensemble', ensemble,
    839                              'model', model,
    840                              'post_processing', post_processing,
    841                              'slices_spacing_micrometer', slices_spacing_micrometer).get()

TypeError: No matching overloads found for org.scijava.command.DefaultCommandService.run(_jpype._JClass,bool,str,ch.epfl.biop.atlas.aligner.MultiSlicePositioner,str,bool,str,list,str,bool,str,str,str,str,str,int), options are:
	public java.util.concurrent.Future org.scijava.command.DefaultCommandService.run(java.lang.String,boolean,java.util.Map)
	public java.util.concurrent.Future org.scijava.command.DefaultCommandService.run(org.scijava.command.CommandInfo,boolean,java.util.Map)
	public java.util.concurrent.Future org.scijava.command.DefaultCommandService.run(org.scijava.command.CommandInfo,boolean,java.lang.Object[])
	public java.util.concurrent.Future org.scijava.command.DefaultCommandService.run(java.lang.Class,boolean,java.util.Map)
	public java.util.concurrent.Future org.scijava.command.DefaultCommandService.run(java.lang.String,boolean,java.lang.Object[])
	public java.util.concurrent.Future org.scijava.command.DefaultCommandService.run(java.lang.Class,boolean,java.lang.Object[])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions