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

Fixes ASK14 GMPE behaviour to remove ValueError #3316

Merged
merged 1 commit into from Dec 15, 2017

Conversation

g-weatherill
Copy link
Collaborator

@g-weatherill g-weatherill commented Dec 13, 2017

Closes #3270

When presented with small magnitudes at long periods the Abrahamson et al. (2014) GMPE provides erroneous (i.e. complex) values for intra-event standard deviation. Currently this is caught by raising a ValueError, breaking the calculation. However, as noted in #3270 the GMPE authors themselves catch this case by reducing the phi_amp term so that it is fractionally smaller than phi_al, preventing this from happening. The PR implements this adjustment.

@micheles micheles added this to the Engine 2.9.0 milestone Dec 15, 2017
@micheles
Copy link
Contributor

LGTM on my part

@mmpagani
Copy link
Member

LGTM

@micheles micheles merged commit 350fdfc into gem:master Dec 15, 2017
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.

None yet

3 participants