Skip to content

Commit

Permalink
ignore FutureWarning spam from intake-esm
Browse files Browse the repository at this point in the history
  • Loading branch information
RondeauG committed Sep 13, 2023
1 parent 308de3c commit 83c24c1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions xscen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,18 @@ def warning_on_one_line(


warnings.formatwarning = warning_on_one_line

# FIXME: This is a temporary fix for the FutureWarning spam from intake-esm.
# Print FutureWarnings from intake-esm only once
warnings.filterwarnings(
"ignore",
category=FutureWarning,
module="intake_esm",
message="The default of observed=False is deprecated and will be changed to True in a future version of pandas. Pass observed=False to retain current behavior or observed=True to adopt the future default and silence this warning.",
)
warnings.filterwarnings(
"ignore",
category=FutureWarning,
module="intake_esm",
message="DataFrame.applymap has been deprecated. Use DataFrame.map instead.",
)

0 comments on commit 83c24c1

Please sign in to comment.