Skip to content

"NameError: 'syn' is not defined" occuring in examples 1, 2 and 3 #1

@NinaOmejc

Description

@NinaOmejc

Hi, first thank you for the nice set of examples and exercises. I've run them on ebrains, where it works, but now I installed the LFPy and NEURON locally and I'm having issues while trying to run the same examples, from 1 to 3.

The error is in line with the synapse declaration:

synapse = LFPy.Synapse(...) 

Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm 2023.2.5\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode
    coro = func()
  File "<input>", line 2, in <module>
  File "D:\Learning\lfpy\venv\lib\site-packages\LFPy\pointprocess.py", line 126, in __init__
    self.hocidx = int(cell.set_synapse(idx=idx, syntype=syntype,
  File "D:\Learning\lfpy\venv\lib\site-packages\LFPy\cell.py", line 586, in set_synapse
    self.synlist.append(syn)
NameError: name 'syn' is not defined. Did you mean: 'sys'?

Can you help me resolve the issue?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions