Skip to content

Add missing equations and unit tests for Thingbaijam2017#11496

Merged
micheles merged 7 commits into
masterfrom
thingbaijam_update
May 29, 2026
Merged

Add missing equations and unit tests for Thingbaijam2017#11496
micheles merged 7 commits into
masterfrom
thingbaijam_update

Conversation

@kurannn
Copy link
Copy Markdown
Contributor

@kurannn kurannn commented May 27, 2026

This PR adds the missing equations in Thingbaijam2017 and its tests. Plus, information in the docstrings has been harmonized.

ThingbaijamInterface

  • Small changes in docstrings for compatibility with rest of snippets.

ThingbaijamStrikeSlip

  • get_median_length, get_std_dev_length, and get_median_width functions are added.
  • get_std_dev_width is revised.

ThingbaijamNormalFault

  • get_median_length, get_std_dev_length, get_median_width, and get_std_dev_width functions are added.

ThingbaijamReverseFault

  • get_median_length, get_std_dev_length, get_median_width, and get_std_dev_width functions are added.

@micheles micheles added this to the Engine 3.26.0 milestone May 27, 2026
@kurannn kurannn requested a review from mmpagani May 27, 2026 13:44
Copy link
Copy Markdown
Contributor

@CB-quakemodel CB-quakemodel left a comment

Choose a reason for hiding this comment

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

Thanks @kurannn, LGTM. Please update the changelog with a comment to explain the new MSRs added here to the existing thingbaijam2017.py

The changelog file to update can be found in oq-engine/debian/changelog

Comment thread openquake/hazardlib/scalerel/thingbaijam2017.py Outdated
Copy link
Copy Markdown
Member

@mmpagani mmpagani left a comment

Choose a reason for hiding this comment

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

LGTM

@micheles micheles merged commit 3616a32 into master May 29, 2026
4 checks passed
@micheles micheles deleted the thingbaijam_update branch May 29, 2026 06:50
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.

4 participants