Skip to content

coords not defined #6

Closed
Closed

Description

@arnodelorme

This is where coords is read.

if coord_units == 'guess':

However, if the condition is not 'guess' then we get this error

Traceback (most recent call last):
  File "/Users/arno/Python/eegprep/src/eegprep/bids_preproc.py", line 241, in bids_preproc
    EEG = pop_load_frombids(
  File "/Users/arno/Python/eegprep/src/eegprep/pop_load_frombids.py", line 511, in pop_load_frombids
    coords = coords_to_mm(coords, coord_units)
UnboundLocalError: local variable 'coords' referenced before assignment

Activity

  1. chkothe commented on Aug 9, 2025

    @chkothe
    Contributor

    Ah, yes, thanks. I've just refactored that portion. Which study were you testing on btw?

  2. arnodelorme commented on Aug 9, 2025

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

Metadata

Metadata

Assignees

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