Skip to content

Proposal: filter_solution could agressively strip opensha non-essential data from filtered solutions #78

@chrisbc

Description

@chrisbc

fiIter_solution(...)

def filter_solution(input_solution: InversionSolution, ruputre_ids: Iterable[int], trim_geometry: bool=False) -> InversionSolution:
    """Filter the input_solution to a subset of rupture ids specified in rupture_ids. Optionally, trim the fault section geometry to only the fault sections that are involved in the ruptures given"""

The function is already implemented, but without the trim_geometry option. However looking at contents of a solution it seems there's more to consider here. Yes, geometries could be trimmed, but there's other stuff (much bigger) that could be trimmed or even removed altogether?

In this ticket @chrisdicaprio I'll write up some doco about filter_solution, and I"ll discuss the wrinkles/potential for future of trim_ args etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions