From 19ea83b3a48962497543fa40673dc50868e29430 Mon Sep 17 00:00:00 2001 From: HenryGeorgist Date: Tue, 14 Jul 2026 22:57:11 +0000 Subject: [PATCH] style: apply ruff format to run_lmc changes CI ruff format --check flagged the LMC OOM/corrupt-year staging block: blank line after the local import and one-arg-per-line in the _get_folder call. Format-only; no logic change. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugin.py b/src/plugin.py index febdf10..fb249f0 100644 --- a/src/plugin.py +++ b/src/plugin.py @@ -645,6 +645,7 @@ def run_lmc(action): # domain-wide (empty transposition domain). Spatial L-moments pool across the # surviving years, so dropping the bad year is the intended recovery. import xarray as xr + kept_years, dropped_years = [], [] for _amf in sorted(glob.glob(os.path.join(lmc, "*Maxima.*.nc4"))): with xr.open_dataset(_amf) as _d: @@ -694,7 +695,9 @@ def run_lmc(action): _day = _day + np.timedelta64(1, "D") if needed_precip: _get_folder( - action, "raw_precipitation", lmc, + action, + "raw_precipitation", + lmc, name_filter=lambda b: b in needed_precip, ) else: