Skip to content

Commit d150126

Browse files
committed
dont show numpy warnings
1 parent 5f31866 commit d150126

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

climada/hazard/trop_cyclone.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def _windfield(track, centroids, coastal_idx, model):
210210
Returns:
211211
np.array
212212
"""
213+
np.warnings.filterwarnings('ignore')
213214
# Make sure that CentralPressure never exceeds EnvironmentalPressure
214215
up_pr = np.argwhere(track.central_pressure.values >
215216
track.environmental_pressure.values)

0 commit comments

Comments
 (0)