Skip to content

Commit 302e77a

Browse files
committed
corrections for specific deg cases
1 parent 71299ba commit 302e77a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

climada/hazard/trop_cyclone.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ def _set_frequency(self, tracks):
137137
Parameters:
138138
tracks (list(xr.Dataset))
139139
"""
140+
if not len(tracks):
141+
return
140142
delta_time = \
141143
np.max([np.max(track.time.dt.year.values) \
142144
for track in tracks]) - \

0 commit comments

Comments
 (0)