pylems does not seem to be able to handle recursive includes
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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