Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative porosity when using mean and max in the config #210

Closed
wouterjdb opened this issue Oct 9, 2020 · 4 comments
Closed

Negative porosity when using mean and max in the config #210

wouterjdb opened this issue Oct 9, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@wouterjdb
Copy link
Collaborator

Setting porosity with a mean and max will lead to realizations with negative porosity and failed runs:

image

image

This is always invalid and should lead to a crash.

@wouterjdb wouterjdb added the bug Something isn't working label Oct 9, 2020
@olelod
Copy link
Collaborator

olelod commented Oct 27, 2020

Should we move part of what is done in _run_ahm.py into the config parsing, such that this is discovered earlier? Raise an error there if what you define would lead to negative min.

@wouterjdb
Copy link
Collaborator Author

Yes, sounds good. However, another thing is that the code that calculate the distributions is very slow. So still it would take some time to get the error. I guess we can do this faster.

@olelod
Copy link
Collaborator

olelod commented Oct 28, 2020

For the uniform distribution it should be pretty straightforward. The loguniform one is a different beast. I guess it has a use case when a parameter has a lower bound you can not theoretically pass (such as 0 porv or poro), but if you define the mean and max, you can end up with e.g. a minimum porosity of 0.15. What we are really saying then is that the lowest possible (and most likely) value of porosity is 0.15. I don't think this is what we really want - we want some other distribution that moves towards lower probability in the prior as we move towards the boundaries (but that is more fundamental than what this issue aims at solving...)

@olelod
Copy link
Collaborator

olelod commented Dec 17, 2020

PR #251 adds multiple checks on the input values, which should close this issue.

@olelod olelod closed this as completed Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants