WFP-VAM / anticipatory-action

0 stars 1 forks source link

Patch to ensure params.fbf_districts_df has English category names #18

Closed paololucchino closed 1 month ago

paololucchino commented 1 month ago

params.fbf_districts_df reads a pandas DataFrame with a category column. For MOZ these categories are written in Portuguese.

run_aa_probabilities returns category names based on the the names from params.intensity_threshold, which in turn reads from the country config file. For MOZ, these are in English.

merge_un_biased_probs attempts to align these datasets along category name. As they were in different languages for MOZ, no alignment was found.

This PR adds a patch fix to translate params.fbf_districts_df on the fly in merge_un_biased_probs