akvo.iati.checks.fields.sectors module

akvo.iati.checks.fields.sectors.has_invalid_vocabulary_code(sector)[source]
akvo.iati.checks.fields.sectors.sectors(project)[source]

Check if sectors are present, either on project or transaction level, but not both. If on transaction level, all transactions must have a sector. Per sector vocabulary on project level, the percentages of the sectors should add up to 100%. On transaction level, each sector vocabulary should only occur once per transaction.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]