diff --git a/src/troute-network/troute/HYFeaturesNetwork.py b/src/troute-network/troute/HYFeaturesNetwork.py index 2b61b0f2d..4f2d50344 100644 --- a/src/troute-network/troute/HYFeaturesNetwork.py +++ b/src/troute-network/troute/HYFeaturesNetwork.py @@ -38,7 +38,7 @@ def gpd_read_file(filename: Path, layer: str, layer_dict: dict) -> pd.DataFrame: gpd.DataFrame: Geopandas dataframe of given layer from geopackage """ try: - df = gpd.read_file(file_path, layer=layer) + df = gpd.read_file(filename, layer=layer) except ValueError: df = gpd.read_file(filename, layer=layer_dict.get(layer))