Skip to content

feat: add risk_cattle column and Ind_12_pasture_2020 placeholder indicator#224

Open
andyarnell wants to merge 1 commit into
mainfrom
feat/cattle-risk
Open

feat: add risk_cattle column and Ind_12_pasture_2020 placeholder indicator#224
andyarnell wants to merge 1 commit into
mainfrom
feat/cattle-risk

Conversation

@andyarnell

Copy link
Copy Markdown
Collaborator

Adds risk_cattle as a new output column, following the same decision tree as acrop for now. Ind_12_pasture_2020 exists as a placeholder indicator with nothing feeding it yet -- it will be wired into a revised cattle decision tree once pasture data coverage and silvopastoral nuances are reviewed (see #188).

Breaking change: risk_livestock renamed to risk_cattle in filter_to_risk_columns() output
Ind_12_pasture_2020 added as indicator column (always "no" until use_for_risk_cattle datasets are added)
run_pytest.sh fixed to activate .venv before running pytest
copilot-instructions.md updated to reflect cattle instead of livestock

Note for review: the 3 Brazil pasture datasets (nBR_INPE_TCamz_pasture_2020, nBR_INPE_TCcer_pasture_2020, nBR_MapBiomas_col9_pasture_2020) currently have use_for_risk=1, meaning they feed Ind_02 for pcrop and acrop. This is likely wrong -- pasture is cattle evidence, not a perennial/annual crop commodity indicator. Flagging here for confirmation before changing, as these were set deliberately in the original Brazil dataset PR.

…_livestock; fix run_pytest.sh venv activation; update copilot-instructions

Cattle pathway follows the same decision tree as acrop for now (Ind_01, Ind_02, Ind_04). Ind_12_pasture_2020 exists as a placeholder indicator column with nothing feeding it yet (use_for_risk_cattle=0) -- will be wired into the decision tree once pasture data coverage and silvopastoral nuances are reviewed. Pasture datasets still have use_for_risk=1 (feeding Ind_02 for pcrop/acrop); whether this is correct needs checking with Brazil dataset authors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant