Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range #289

Open
aurallaura opened this issue Nov 14, 2023 · 2 comments
Open

IndexError: list index out of range #289

aurallaura opened this issue Nov 14, 2023 · 2 comments

Comments

@aurallaura
Copy link

I am encountering the error after running the below script and getting the error following. The script was working until I had a hard drive failure and had to reinstall everything. I imported FISSA and it says that I have the 1.0.0 installed. I tried importing the 0.5.3 version (using pip install fissa==0.5.3) because the python script I am using was written in 2019 but says there is an issue with the package.

#initiate experiment
exp = fissa.Experiment(tiff_folder,rois_FISSA,output_folder)
exp.separate(redo_prep=True)
Extracting traces:   0%|                                                                                                                   | 0/5 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "", line 1, in
  File "/Users/anaconda3/lib/python3.11/site-packages/fissa/core.py", line 1364, in separate
    self.separation_prep(redo_prep)
  File "/Users/anaconda3/lib/python3.11/site-packages/fissa/core.py", line 1259, in separation_prep
    n_roi = len(outputs[0][1])
                ~~~~~~~^^^
IndexError: list index out of range

Is this likely an error with the version of FISSA or something else?

@nathalierochefort
Copy link
Member

Dear @aurallaura,
see issue #276: IndexError: list index out of range while doing experiment.separate() #276
for help.
'it appears that the images and roi paths should be sent as a list. Once I did that, the script correctly recognized my items.'
Hope it helps,

@zloniko
Copy link

zloniko commented May 14, 2024

I had similar problem. The last message was:
"linearrings: Input operand 0 does not have enough dimensions (has 1, gufunc core with signature (i, d)->() requires 2)"
I downgrade Shapely version from 2.0.4 to 1.8.4: pip install shapely==1.8.4

Everything works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants