Comments (2)
Ah. I believe I figured this out. As constructed, an ITN intervention may have
a postprandial effect specified like this (copied from the test
scenario2ITNs.xml):
<postprandialKillingEffect baseFactor="0.10" holeFactor="0"
holeScalingFactor="0.1" insecticideFactor="0.55" insecticideScalingFactor="0.1"
interactionFactor="0"/>
Then, when calculating the survivalFactor in ITN.cpp (line 466),
survivalFactor = (1.-killingEffect)*invBaseSurvival,
with the parameter specifications exactly from the scenario file given above,
it turns out,
invBaseSurvival = 1/(1.-killingEffect),
and survivalFactor _should be_ identically unity.
In this case, the call to assert() should not fail, but it occasionally does. I
expect this is due to the the division in invBaseSurvival, failing at some
tiny, tiny precision. Occasionally this is evaluated as ever so slightly
greater than unity. I believe this causes assert() to fail.
The author of ITN.cpp saw this, I think, with the subsequent lines including,
if ...
else if (survivalFactor > 1.0)
return 1.0;
I've commented out the call to assert() and rebuilt. I do not dump core anymore
and the simulations appear okay.
Maybe this will help another user out there.
Thanks and any comments are of course welcome!
Original comment by [email protected]
on 6 Mar 2015 at 8:44
from openmalaria.
Interesting. Sounds like another case where a small tolerance is necessary.
Richard, would it be possible to send an example scenario where this fails, or
at least do some testing?
Tobi, can you fix?
Original comment by [email protected]
on 12 Mar 2015 at 8:22
from openmalaria.
Related Issues (20)
- Parallelisation HOT 3
- output genotype_weights as a standard OM output HOT 1
- hrp2 deletions which make the parasites non-detectable on RDT HOT 6
- Updating OpenMalaria to use C++11. HOT 1
- url link broken HOT 1
- Building OpenMalaria for MacOS HOT 6
- PKPD functionality updates HOT 1
- Nv threshold for extinction of vector species HOT 2
- Investigate using the IKOS code analyser HOT 1
- Ideas for a potential code-rewrite HOT 1
- Linux automated build links to specific versions of libraries not commonly installed HOT 1
- 2 or 3 compartment PK Model Concentrations HOT 1
- Including Michael White's P. vivax model HOT 1
- Migrate schema documentation to GitHub pages HOT 2
- output 36 (simulatedEIR) per vector species? HOT 4
- Issue with drug conversion model HOT 2
- Patch model HOT 2
- Automated builds for Mac OS X
- pK/pD functionality
- Incorrect schema version for schema-44 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmalaria.