Skip to content

name 'meeg' is not defined // in separate function #46

Open
@Y-Bezs

Description

@Y-Bezs

I run my Python code in the terminal via
Python my_code.py.
The code uses functions that are saved in a separate file. All of the files are located in the same folder.

In the my_code.py I successfully import SPM viafrom spm import *
However, I get the following mistake:

D = meeg(nChans,nSamples,nTrials)
^^^^
NameError: name 'meeg' is not defined

This is part of the code within the separate function.

When I run all of it in VS code line by line, everything seems to be working

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