Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Modernize NMODL -> Python layer.#1306

Merged
1uc merged 16 commits into
masterfrom
1uc/maintain-dlsymy-code
Jun 12, 2024
Merged

Modernize NMODL -> Python layer.#1306
1uc merged 16 commits into
masterfrom
1uc/maintain-dlsymy-code

Conversation

@1uc

@1uc 1uc commented Jun 7, 2024

Copy link
Copy Markdown
Collaborator

The changes are:

  • Don't forcefully set the PYTHONPATH.
  • Replace false object oriented code with a function (each).
  • Replace a global variable, with a function to initialize.
  • Use a reference for a pointer that's should never be a nullptr.

bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Jun 7, 2024
@bbpbuildbot

This comment has been minimized.

bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Jun 7, 2024
@codecov

codecov Bot commented Jun 7, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 68.85246% with 19 lines in your changes missing coverage. Please review.

Project coverage is 85.46%. Comparing base (c5ecfea) to head (bc5b76c).

Files Patch % Lines
src/pybind/pyembed.cpp 22.72% 17 Missing ⚠️
src/visitors/main.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1306      +/-   ##
==========================================
- Coverage   85.54%   85.46%   -0.08%     
==========================================
  Files         178      178              
  Lines       13415    13372      -43     
==========================================
- Hits        11476    11429      -47     
- Misses       1939     1943       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bbpbuildbot

This comment has been minimized.

bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Jun 7, 2024
@1uc 1uc force-pushed the 1uc/maintain-dlsymy-code branch from 90c947b to 7b3baed Compare June 7, 2024 14:34
bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Jun 7, 2024
@bbpbuildbot

This comment has been minimized.

bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Jun 7, 2024
bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Jun 7, 2024
@bbpbuildbot

This comment has been minimized.

@1uc 1uc force-pushed the 1uc/maintain-dlsymy-code branch from 0480e1f to fea7491 Compare June 7, 2024 16:37
bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Jun 7, 2024
@bbpbuildbot

This comment has been minimized.

@1uc 1uc marked this pull request as ready for review June 7, 2024 17:40

@pramodk pramodk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't check every single changed line from src/pybind/wrapper.cpp but overall these are certainly nice improvements and make it clear/concise!

@1uc

1uc commented Jun 11, 2024

Copy link
Copy Markdown
Collaborator Author

Double checked the issue about PYTHONPATH and at least locally it's not required. Plus it should get tests via the Spack-powered CI (since everything is then added via PYTHONPATH).

bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Jun 11, 2024
@bbpbuildbot

Copy link
Copy Markdown
Collaborator

Logfiles from GitLab pipeline #216169 (:white_check_mark:) have been uploaded here!

Status and direct links:

@1uc 1uc merged commit 2636b4e into master Jun 12, 2024
@1uc 1uc deleted the 1uc/maintain-dlsymy-code branch June 12, 2024 08:05
JCGoran pushed a commit to neuronsimulator/nrn that referenced this pull request Mar 12, 2025
The changes are:

* Don't forcefully set the PYTHONPATH.
* Replace false object oriented code with a function (each).
* Replace a global variable, with a function to initialize.
* Use a reference for a pointer that's should never be a nullptr.



NMODL Repo SHA: BlueBrain/nmodl@2636b4e
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants