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

ARISTOTLE: use the preferred shakemap version if more than one is available #10120

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ptormene
Copy link
Member

@ptormene ptormene commented Nov 5, 2024

I implemented a logic that follows the description of preferredWeight in https://earthquake.usgs.gov/data/comcat/#product_preferredWeight, i.e.:
Relative weight of product. When multiple products of the same type are associated to an event, one product of each type is considered "most preferred" This is defined as the product of that type with the largest preferredWeight, and when two products have equal preferredWeight the most recent updateTime is more preferred.

I also tried to collect some information about the shakemap that is used (see bd96e94), but it is not so straightforward to propagate such information in order to make it visible in the outputs page, so I am postponing that work to a separate PR.

@ptormene ptormene added the bug label Nov 5, 2024
@ptormene ptormene added this to the Engine 3.22.0 milestone Nov 5, 2024
@ptormene ptormene self-assigned this Nov 5, 2024
@ptormene ptormene marked this pull request as draft November 5, 2024 11:16
… case of ties, get the one with the most recent updateTime
@ptormene ptormene marked this pull request as ready for review November 5, 2024 15:57
@ptormene ptormene changed the title ARISTOTLE: use the latest shakemap version if more than one is available ARISTOTLE: use the preferred shakemap version if more than one is available Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant