Skip to content

Windows error in neural_simulations.py > load_mechs_from_folder() #23

@p2jones

Description

@p2jones

The function load_mechs_from_folder() in brainsignals/neural_simulations.py has not been tested on Windows (according to a to-do comment). I tested it and ran into a couple simple problems.

To Reproduce
On Windows 11, with all requirements installed, run the first cell of Figure-7.11.ipynb

Errors

  1. In load_mechs_from_folder, warn is not imported. I resolved this by importing warn and reinstalling brainsignals

  2. In load_mechs_from_folder, mod_pth is not defined. In other functions, there are different definitions, so I'm not sure which one to use. I possibly solved this by mod_pth = join(hay_folder, "mod/")
    As the warning suggests, I ran mknrndll from NEURON bash in the folder L5bPCmodelsEH

  3. Next error occured at cell = return_hay_cell(tstop=tstop, dt=dt, make_passive=False)
    "ValueError: setting an array element with a sequence."

Copilot suggests that LFPy isn't yet compatible with python 3.14, so I should python 3.11.

Setup

  • OS: Windows 11
  • Python 3.14
  • Neuron 9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    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