MatrixReport.from_file#
- classmethod MatrixReport.from_file(path, *, translation_path, translation_from_col, translation_to_col, translation_factors_col)[source]#
Create an instance of MatrixReport from file paths.
- Parameters:
path (pathlib.Path) – Path to the matrix csv.
translation_path (pathlib.Path) – Path to correspondence between matrix zoning and summary zoning.
translation_from_col (str) – The column in the translation matrix with zoning to translate from.
translation_to_col (str) – The column in the translation matrix with zoning to translate to.
translation_factors_col (str) – The column in the translation matrix to use as factors.
- Returns:
Instance of MatrixReport created from the file paths.
- Return type: