1012 bug in getting testparameters in specific test derived from generictest#1013
Conversation
…estParameter for each type
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1013 +/- ##
==========================================
- Coverage 96.09% 96.08% -0.01%
==========================================
Files 131 131
Lines 11046 11048 +2
==========================================
+ Hits 10615 10616 +1
- Misses 431 432 +1 ☔ View full report in Codecov by Sentry. |
DavidKerkmann
left a comment
There was a problem hiding this comment.
We already talked about these changes and I am fine with it. We can discuss about the naming "TestData", so if anyone finds a better name, feel free to suggest it.
reneSchm
left a comment
There was a problem hiding this comment.
Good fix, note that the type mio::CustomIndexArray<mio::abm::TestParameters, mio::abm::TestType> needs to be bound for the py simulation to run.
|
There is still an error in the Pycode. The |
|
According to CodeCov the coverage dropped because of some "indirect changes" by commit a8dd034 (I am not sure that the branch is reported correctly), so now line 200-202 in cpp/models/abm/infection.cpp are no longer covered. Probably some parameter change in the tests could fix this, but maybe have a look at the function as well (it might possibly need updating?). |
Signed-off-by: DavidKerkmann <44698825+DavidKerkmann@users.noreply.github.com>
…-testparameters-in-specific-test-derived-from-generictest' into 1012-bug-in-getting-testparameters-in-specific-test-derived-from-generictest
…ived-from-generictest' of github.com:SciCompMod/memilio into 1012-bug-in-getting-testparameters-in-specific-test-derived-from-generictest
Signed-off-by: DavidKerkmann <44698825+DavidKerkmann@users.noreply.github.com>
…ived-from-generictest' of github.com:SciCompMod/memilio into 1012-bug-in-getting-testparameters-in-specific-test-derived-from-generictest
…ic-test-derived-from-generictest
|
It seems that I managed to fix the python bindings. However, I had to implement serialise and deserialise for the simple as it couldn't be detected by the templates in io/io.h. Is there a way around that? I can imagine letting this derive from |
Not really, we cannot iterate over members of generic structs. (Technically, we could using a void*, but that will cause more issues than it solves.)
That (or tuples, vectors, or other types with its own (de)serialize_internal function) would work, but you lose the names when writing the Json. I'd say the best options are
|
|
I see. In that case I would leave it as is for now and make changes later if we need to. |
reneSchm
left a comment
There was a problem hiding this comment.
Seems like everything works now, good fix for the CustomIndexArray bindings!
Before you merge, could you check the benchmarks? Though I expect there won't be any changes.
Co-authored-by: reneSchm <49305466+reneSchm@users.noreply.github.com>
|
Benchmark comparison. There seems to be some difference in timing for each run, but the values don't vary much from the main branch. This branch: Main: |
Changes and Information
Please briefly list the changes (main added features, changed items, or corrected bugs) made:
If need be, add additional information and what the reviewer should look out for in particular:
Merge Request - Guideline Checklist
Please check our git workflow. Use the draft feature if the Pull Request is not yet ready to review.
Checks by code author
Checks by code reviewer(s)
Closes #1012