Landslide Science Rule · volume_method
← All rules

volume_method → writes volume_method

1556 already match 0 would change

Function source

This is read live from inventory/derived.py via inspect.getsource(); what you see is exactly what runs.

def compute_volume_method(row):
    """Standardize volume_method for rows using the automated estimate.

    - If `volume_site_specific` is set, this row was sized by a manual /
      site-specific approach. Keep whatever volume_method text is there
      (typically a one-off description: a paper citation, a DEM-differencing
      note, an exposure measurement, etc.). The rule returns the stored
      value unchanged, so those rows never disagree.
    - Otherwise the row is using the rule-driven estimate. Force a single
      canonical label `AUTOMATED_VOLUME_METHOD_LABEL` so the auto-estimated
      cohort is easy to count and filter.
    """
    if row.get('volume_site_specific') is not None:
        return row.get('volume_method')
    return AUTOMATED_VOLUME_METHOD_LABEL

Proposed changes

All rows already match this rule — nothing to apply.