Closed 1uc closed 2 months ago
The original issue reporting an issue is #2783.
✔️ 18b67f26a2ad19e69c2e43ae7724863fae7c1d7b -> Azure artifacts URL
Attention: Patch coverage is 90.58824%
with 8 lines
in your changes missing coverage. Please review.
Project coverage is 67.29%. Comparing base (
c2b939c
) to head (ad7c2fd
). Report is 2 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
src/nrnpython/nrnpy_nrn.cpp | 89.33% | 8 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Logfiles from GitLab pipeline #218812 (:white_check_mark:) have been uploaded here!
Status and direct links:
✔️ a503a4eaf9799683ac5dc6401bbcbef8c080d4f1 -> Azure artifacts URL
Logfiles from GitLab pipeline #219157 (:white_check_mark:) have been uploaded here!
Status and direct links:
I've added tests for things like:
s.mech.ptr = 42.0
s.mech._ref_ptr = some_other_ref
in both variations, i.e. either s.mech.ptr
or s.ptr_mech
.
There's checks that it returns an OpaquePointer
when appropriate. It also checks that we can't assign to a pointer that doesn't point to anything; and that we can't mix types, e.g. string to doubles or doubles to pointers.
The tests are all in Python and no new tests were added for HOC.
✔️ 4f6744ef7a9f3737e925c89a5ee3542162eaa0bf -> Azure artifacts URL
✔️ 150e6c516af72778a814175bfcea7cc93a17c563 -> Azure artifacts URL
Logfiles from GitLab pipeline #219227 (:white_check_mark:) have been uploaded here!
Status and direct links:
Logfiles from GitLab pipeline #220664 (:no_entry:) have been uploaded here!
Status and direct links:
✔️ 322ee69df7a3dc01e4f1720a80160c88f9817e3f -> Azure artifacts URL
Issues
12 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Logfiles from GitLab pipeline #220713 (:white_check_mark:) have been uploaded here!
Status and direct links:
✔️ ad7c2fd3af041fb9d66a867b32f62a611e73e956 -> Azure artifacts URL
From our internal discussion, we said this is good to go!
@nrnhines: if you see any corner cases, let us know!
Inside VERBATIM blocks of a MOD file, pointers can be made to point to any type, e.g.
void*
. Thegeneric_data_handle
knows this, and will refuse any attempts to convert todouble*
.From Python there's certain pointers are visible, even if they don't point at a
double
. They were unconditionally converted to adata_handle<double>
, i.e. adouble*
. If thegeneric_data_handle
didn't contain adouble*
the application would crash.This commit proposes to return an
OpaquePointer
object instead. There's nothing one can do with anOpaquePointer
, but it helps in things likepsection
.