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

csv_filters IndexError: list index out of range for table_cols #130

Open
will-moore opened this issue Oct 20, 2023 · 1 comment
Open

csv_filters IndexError: list index out of range for table_cols #130

will-moore opened this issue Oct 20, 2023 · 1 comment

Comments

@will-moore
Copy link
Member

Haven't looked into this but looks like no table_cols are found in a csv, giving an IndexError...
Reported at https://www.openmicroscopy.org/qa2/qa/feedback/40337/

Traceback (most recent call last):

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/omeroweb/decorators.py", line 538, in wrapped
retval = f(request, *args, **kwargs)

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/omero_parade/views.py", line 128, in filter_script
return module.get_script(request, filter_name, conn)

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/omero_parade/csv_filters/omero_filters.py", line 194, in get_script
'default': table_cols[0],

IndexError: list index out of range
@will-moore
Copy link
Member Author

Related but different error at https://www.openmicroscopy.org/qa2/qa/feedback/42083/

Traceback (most recent call last):

File "/opt/omero/web/venv3/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)

File "/opt/omero/web/venv3/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/opt/omero/web/venv3/lib/python3.10/site-packages/omeroweb/decorators.py", line 538, in wrapped
retval = f(request, *args, **kwargs)

File "/opt/omero/web/venv3/lib/python3.10/site-packages/omero_parade/views.py", line 182, in get_data
data = module.get_data(request, data_name, conn)

File "/opt/omero/web/venv3/lib/python3.10/site-packages/omero_parade/csv_filters/data_providers.py", line 113, in get_data
img_id = row[img_col_idx].strip()

IndexError: list index out of range

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

1 participant