Skip to content

Docstring for distance measure in disaggregation - #11937

Merged
micheles merged 4 commits into
gem:masterfrom
volkanozsarac:master
Oct 19, 2026
Merged

micheles merged 4 commits into
gem:masterfrom
volkanozsarac:master

Conversation

@volkanozsarac

Copy link
Copy Markdown
Contributor

Hi,

the disaggregation docstring in openquake/hazardlib/calc/disagg.py and the "Disaggregation" section of doc/underlying-science/PSHA-with-OQ-engine.rst state that ruptures are binned by Joyner-Boore distance (rjb). However, the engine actually bins by rupture distance (rrup):

bindata = BinData(ctx.rrup, ctx.clon, ctx.clat, pnes)

bindata = BinData(ctx.rrup, ctx.clon, ctx.clat, pnes)

This PR corrects both descriptions. Users rely on these docs to interpret disaggregation outputs, so the mismatch can lead to misreading the distance bins.

@micheles
micheles self-requested a review October 19, 2026 12:14
@micheles micheles self-assigned this Oct 19, 2026
@micheles micheles added this to the Engine 3.27.0 milestone Oct 19, 2026
@micheles
micheles merged commit 5eecb66 into gem:master Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants