def format(self, model: AssetAllocationModel, full: bool = False):
self.full = full<EOL>output = f"<STR_LIT>"<EOL>for column in self.columns:<EOL><INDENT>name = column['<STR_LIT:name>']<EOL>if not self.full and name == "<STR_LIT>":<EOL><INDENT>continue<EOL><DEDENT>width = column["<STR_LIT:width>"]<EOL>output += f"<STR_LIT>"<EOL><DEDENT>output += "<STR_LIT:\n>"<EOL>output += f"<STR_LIT>"<EOL>view_model = ModelMapper(model).map_to_linear(self.full)<EOL>for row in view_model:<EOL><INDENT>output += self.__format_row(row) + "<STR_LIT:\n>"<EOL><DEDENT>return output<EOL>
Returns the view-friendly output of the aa model