hal.tier¶
Tier ¶
Tier(G, grid_size_x, grid_size_y, node_expansion_val)
calculate_avg_face_switches ¶
calculate_avg_face_switches(routes)
Calculate the average number of face switches per edge in the tier.
Returns: float: Average number of face switches per edge.
save_metrics ¶
save_metrics(filename, path)
Save the metrics of the tier to a CSV file.
Args: Tier: The tier object containing metrics. filename (str): The name of the file to save metrics. path (Path): The directory path where the file will be saved.