[WIP] Keep multifault tags only for faults with ruptures #10436
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It is possible to have multifault sources where a fault lacks unique ruptures not already counted toward faults closer to a site. When splitting the source by faults, this leaves
src.rupids_by_tag[tag]
empty for a fault with no unique ruptures and causes the job to fail while saving the split sources here.This PR changes the code to wait to create the tag for each fault until it has looped through the ruptures, only creating the tag if ruptures exist.
I will also try to create a test for this... hence WIP