Skip to content

Issue with integer #11

Closed
Closed

Description

@arnodelorme

When it reaches ICLabel, we get this error (takes 2 min). I think this is because bids_preproc does not look up channels by default based on the 10-20 locations.

See script https://github.com/sccn/eegprep/blob/develop/scripts/test_bids_preproc_expanse.py

ERROR (eegprep.bids_preproc) Error processing /expanse/projects/nemar/arno/eegprep/scripts/../../../openneuro/ds003061/sub-001/eeg/sub-001_task-P300_run-1_eeg.set: only integer scalar arrays can be converted to a scalar index
Traceback (most recent call last):
  File "/expanse/projects/nemar/arno/eegprep/src/eegprep/bids_preproc.py", line 503, in bids_preproc
    EEG = iclabel(EEG)
          ^^^^^^^^^^^^
  File "/expanse/projects/nemar/arno/eegprep/src/eegprep/iclabel.py", line 47, in iclabel
    features = ICL_feature_extractor(EEG, True)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/expanse/projects/nemar/arno/eegprep/src/eegprep/ICL_feature_extractor.py", line 37, in ICL_feature_extractor
    _, temp_topo, _, _, _ = topoplot(EEG['icawinv'][:, it], EEG['chanlocs'][EEG['icachansind']], noplot='on')
                                                            ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
TypeError: only integer scalar arrays can be converted to a scalar index
INFO (eegprep.bids_preproc) Writing report to ./bids_preproc_output/ds003061/sub-001/eeg/sub-001_task-P300_run-1_desc-report_eeg.json
INFO (eegprep.bids_preproc) Processed 0 files, skipped 2 files; total time: 4.1m.

Activity

  1. suraj-ranganath commented on May 26, 2026

    @suraj-ranganath
    Member

    @arnodelorme closing since this is likely out of date. Please feel free to reopen if this is still relevant.

  2. arnodelorme commented on May 26, 2026

    @arnodelorme
    CollaboratorAuthor

    Yes, this was fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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