Allow segment.mechanism.func(args)#2475
Conversation
|
✔️ 077c083 -> Azure artifacts URL |
Codecov Report
@@ Coverage Diff @@
## master #2475 +/- ##
==========================================
- Coverage 65.98% 65.85% -0.14%
==========================================
Files 560 559 -1
Lines 108876 108787 -89
==========================================
- Hits 71844 71641 -203
- Misses 37032 37146 +114
... and 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This comment has been minimized.
This comment has been minimized.
…ier_without_container Allows checking of _extcall_prop validity by shadowing with an id.
in same fashion as vectorized mod files.
|
✔️ 6bb061e -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Factorization (incomplete) of new NPyMechObj with new_pymechobj.
Unsolved tests failures:
21 - pytest_coreneuron::basic_tests_py3.10 (Failed)
102 - coreneuron_modtests::datareturn_py_cpu (Failed)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
✔️ 0ab60ff -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
|
apple m1 failure seems unrelated. Will take a look tomorrow. |
pramodk
left a comment
There was a problem hiding this comment.
LGTM
Gitlab CI launched internally for Apple M1 has passed: https://bbpgitlab.epfl.ch/hpc/cellular/nrn/-/jobs/965444
|
SonarCloud Quality Gate failed.
|
|
✔️ 4574f28 -> Azure artifacts URL |
With respect to our conversation with @Helveg earlier today, |
|
@ramcdougal @nrnhines I suppose that Robert's latest comment hasn't been addressed in this PR? Equality checks also fail between |
That is an oversight on my part. I'll start another PR. Does anyone offhand know if there is an issue to be associated with it? |
|
We didn't open an issue yet, just the Slack thread and comments here. I use equality checks to avoid circular logic by keeping a bag of already visited NEURON objects in a differ that I'm writing for NEURON that reports differences between 2 objects recursively visiting everything attached/related to the input objects. Generally speaking, anything that leads to a more complete Python interface would allow Python tooling to write cleaner and simpler code. Right now I'm monkey patching the |
|
I was going to object to your use of "more complete" because you can get all the information you seek through either |











Closes #686
Includes #2504
Includes #2460
Allow mechanism function calls using the syntax
section(x).mechanism.func(args)without requiring a setup call toh.setdata_mechanism(section(x))for the case where func uses range variables.E.g. the old syntax required:
and the new recommended syntax is
NPyMechFunc_callnrn.MechFuncsufficiently complete? Generically its methods arename()andmech(). Anrn.Mechanismpresently has no provision for listing the FUNCTION and PROCEDURE available from the mod file, e.g. via dir(...).Timeit results from
are