Skip to content

Commit

Permalink
Merge pull request atmtools#207 from lkluft/filter-climt-warnings
Browse files Browse the repository at this point in the history
Suppress all warnings during climt import
lkluft authored Nov 23, 2022
2 parents af7ad78 + 0f27e7b commit 36d1209
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion konrad/radiation/rrtmg.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
"""Define an interface for the RRTMG radiation scheme (through CliMT). """
from contextlib import redirect_stdout, redirect_stderr
import io

from copy import deepcopy
import numpy as np
import datetime
from sympl import DataArray
from typhon.physics import vmr2specific_humidity
import climt
with redirect_stdout(io.StringIO()) as _, redirect_stderr(io.StringIO()) as _:
# Suppress warnings by climt which are created by logging and print statements.
import climt
import logging

from .radiation import Radiation

0 comments on commit 36d1209

Please sign in to comment.