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