LEMS / LEMS/pylems

pylems does not seem to be able to handle recursive includes

Open
#94 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

S: needs comment T: bug
Dominant language
Python
Stars
12
Forks
18
PR merge metrics
No merged PRs in 30d

Description

from lems.model.model import Model
from pyneuroml.utils import extract_lems_definition_files

lems_def_dir = extract_lems_definition_files()
model = Model(include_includes=True, fail_on_missing_includes=True)
model.add_include_directory(lems_def_dir)
model.import_from_file("./LEMS_test_Golgi_cells_default_1234.xml")

The lems file refers to a network file which refers to cells in subdirectories, those cells refer to channels in a channel directory.

Needs looking into.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the example using Model.import_from_file and add_include_directory with LEMS_test_Golgi_cells_default_1234.xml. Trace how the referenced network, cell subdirectories, and channel directory are resolved during recursive includes. Done means the example imports successfully without missing-include errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.