ZoningSystem.validate_translation_data#
- ZoningSystem.validate_translation_data(other, translation)[source]#
Validate zone_translation data, checking for missing zones and factors sum to 1.
Normalises column names (normalise_column_name) before checking if columns are present.
- Returns:
zone_translation data after column name normlisation.
- Return type:
pd.DataFrame
- Raises:
TranslationError – If a zone_translation definition between self and other cannot be found or generated, or there is an error in the zone_translation file.
- Warns:
TranslationWarning – If the zone_translation doesn’t contain all zones from either zone system.
- Parameters:
other (ZoningSystem)
translation (DataFrame)