Skip to content

Commit

Permalink
fix filepath given to gpd.read_file
Browse files Browse the repository at this point in the history
  • Loading branch information
shorvath-noaa committed Jul 30, 2024
1 parent 87d5307 commit d263889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/troute-network/troute/HYFeaturesNetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit d263889

Please sign in to comment.