Skip to content

IMPACT: set the default maximum_distance based on trt and mag by interpolation#11459

Draft
ptormene wants to merge 12 commits into
masterfrom
defmaxdist
Draft

IMPACT: set the default maximum_distance based on trt and mag by interpolation#11459
ptormene wants to merge 12 commits into
masterfrom
defmaxdist

Conversation

@ptormene
Copy link
Copy Markdown
Member

No description provided.

@ptormene ptormene added this to the Engine 3.26.0 milestone May 13, 2026
@ptormene ptormene self-assigned this May 13, 2026
Comment thread openquake/commonlib/oqvalidation.py Outdated
maximum_rupture_depth = valid.Param(valid.floatdict, {}) # km
maximum_distance = valid.Param(valid.IntegrationDistance.new) # km
maximum_distance = valid.Param(valid.IntegrationDistance.new,
calc.filters.DEFAULT_INTEGRATION_DISTANCE)
Copy link
Copy Markdown
Contributor

@micheles micheles May 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the engine used via the command-line, we DON'T want a default integration distance, we want to force the users to set it explicitly. It is only within OQImpact that we want to have a default integration distance.
Therefore setting the DEFAULT_INTEGRATION_DISTANCE at this level is a no-go.

"Oceanic Crust with Volcanism": "VOLCANIC",
"Volcanic": "VOLCANIC",
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks very fragile against future changes. At the minimum we need a test at the mosaic level to be able to maintain this mapping and I bet @mmpagani has an idea about the TRTs at the global scale.

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.

2 participants