Skip to content

Commit 45996db

Browse files
Update climada/hazard/tc_tracks.py
Co-authored-by: Samuel Juhel <[email protected]>
1 parent 894bb07 commit 45996db

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

climada/hazard/tc_tracks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,9 +1645,7 @@ def from_FAST(cls, folder_name: str):
16451645

16461646
LOGGER.info(f"Reading {len(get_file_names(folder_name))} files.")
16471647
data = []
1648-
for file in get_file_names(folder_name):
1649-
if Path(file).suffix != ".nc":
1650-
continue
1648+
for file in Path(folder_name).glob("*.nc"):
16511649
with xr.open_dataset(file) as dataset:
16521650
for year in dataset.year:
16531651
for i in dataset.n_trk:

0 commit comments

Comments
 (0)