Skip to content

Commit

Permalink
Fix wrong file selected
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbjoernl committed Jan 3, 2025
1 parent c8226ac commit 87fa349
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pyaro/timeseries/Filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1304,12 +1304,14 @@ def _update_topo_file_path(self, lat: float, lon: float) -> bool:
if lon < metadata[file]["w"] or lon > metadata[file]["e"]:
continue

self._topo_file = self._topo / file
break

if file is None:
raise Exception(
f"No matching topography file found for coordinate pair (lat={lat:.6f}; lon={lon:.6f})"
)

self._topo_file = self._topo / file
else:
raise FileNotFoundError

Expand Down

0 comments on commit 87fa349

Please sign in to comment.