iwfm.diagnostics.detect_mass_balance_hotspots

iwfm.diagnostics.detect_mass_balance_hotspots(mb_summary, threshold_multiplier=5.0)[source]

Identify elements with residuals far above the layer mean.

Parameters:
  • mb_summary (MassBalanceSummary) – From read_elemmb_hdf.

  • threshold_multiplier (float) – Flag elements where mean abs(residual) exceeds this multiple of the layer mean.

Returns:

[{element_id, layer, mean_abs_residual, max_abs_residual, ratio}]

Return type:

list of dict