Skip to content

[Potential Bug] No such input: slicing_mode at initiation #35

@aaronbwong

Description

@aaronbwong

I wanted to run abba programatically using python, and have successfully installed a conda environment as described in the Readme. I then used the following code to import and initiate Abba:

from abba_python.abba import Abba
abba = Abba('Adult Mouse Brain - Allen Brain Atlas V3p1')

However, I noticed that I keep running into the following error:

[WARNING] Unmatched input: slicing_mode
Traceback (most recent call last):
File "DefaultCommandService.java", line 168, in org.scijava.command.DefaultCommandService.run
Exception: Java Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users________\miniconda3\envs\abba-env\lib\site-packages\abba_python\abba.py", line 274, in init
self.mp = ij.command().run(ABBAStartCommand, True,
java.lang.java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: No such input: slicing_mode

Seems like the java code that was called do not expect the input parameter slicing_mode. So I traced back to the abba.py file and removed the line (line 275) containing the input:

        self.mp = ij.command().run(ABBAStartCommand, True,
                                   'slicing_mode', self.slicing_mode, # I removed this line
                                   'ba', self.atlas
                                   ).get().getOutput('mp')

Abba then seems to start properly, but I would need to click a button in the popup window.

Could it be a bug? Maybe there's an updated to the BIOP atlas aligner code (here) that was not accommodated?

My specs:
OS: Windows 10
python version: 3.10.16
abba version: 0.9.11
conda environment created in miniconda3 with conda version 23.1.0
abba-python installed with pip

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