From b1c6ad01a0a22fd59c859167797e88f9858764a9 Mon Sep 17 00:00:00 2001 From: Cory Balaton Date: Tue, 1 Oct 2024 19:07:14 +0200 Subject: [PATCH] Change function to indexes_to_cities --- common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common.py b/common.py index d5c787c..422cfc9 100644 --- a/common.py +++ b/common.py @@ -3,7 +3,6 @@ from typing import Dict, List, Tuple import matplotlib.pyplot as plt import numpy as np import numpy.typing as npt -from numpy._typing import NDArray # Data given by the assignment city_coords: Dict = { @@ -73,7 +72,7 @@ def plot_plan(city_order: List[str]) -> None: plt.show() -def index_to_city(indexes: npt.NDArray, cities: npt.NDArray) -> npt.NDArray: +def indexes_to_cities(indexes: npt.NDArray, cities: npt.NDArray) -> npt.NDArray: """Create an array of cities from indeces in a specific order. Args: