From f93b96ff22eac73aa33d758a664482aadeaad32d Mon Sep 17 00:00:00 2001 From: Sammy Joseph <101523651+Sammyjoseph999@users.noreply.github.com> Date: Fri, 19 Jun 2026 01:59:58 +0300 Subject: [PATCH] docs: fix mislabeled auto-detect CLI example in hazards.py (#79) (#136) The 'Auto-detect season' example used --season-start/--season-end, which is the explicit-season mode, duplicating the genuine explicit-season example below it. Drop the season flags so it is a true auto-detect invocation; the fixed-season and explicit-date examples remain distinct. --- climate_tookit/calculate_hazards/hazards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/climate_tookit/calculate_hazards/hazards.py b/climate_tookit/calculate_hazards/hazards.py index 38560cf..426a2b1 100644 --- a/climate_tookit/calculate_hazards/hazards.py +++ b/climate_tookit/calculate_hazards/hazards.py @@ -1144,7 +1144,7 @@ def print_hazard_results(result: Dict[str, Any]) -> None: f.write(json.dumps(result, indent=2, default=str)) # Auto-detect season (no season flag supplied -- always uses chirps+chirts internally): -# python -m climate_tookit.calculate_hazards.hazards maize --location="-1.286,36.817" --date-from 2016-01-01 --date-to 2016-12-31 --season-start 2016-03-01 --season-end 2016-06-30 +# python -m climate_tookit.calculate_hazards.hazards maize --location="-1.286,36.817" --date-from 2016-01-01 --date-to 2016-12-31 # Fixed single season: # python -m climate_tookit.calculate_hazards.hazards maize --location="-1.286,36.817" --date-from 2018-01-01 --date-to 2022-12-31 --fixed-season "03-01:06-30" --source era_5