Commit b064605
committed
Silence LAL SWIG stdio and matplotlib font-manager noise on import
LAL enables SWIG stdout/stderr redirection under IPython/Jupyter, which
carries a performance penalty and prints a "Wswiglal-redir-stdio" warning.
Disable it on import via LAL's own swig_redirect_standard_output_error(False);
set PYCBC_LAL_SWIG_REDIRECT_STDIO to keep LAL's native behaviour.
Also raise the matplotlib.font_manager logger to WARNING so its flood of
DEBUG "findfont: ..." records (tens of thousands per figure) no longer swamps
the output of pycbc tools run with --verbose.1 parent f6eaed2 commit b064605
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
32 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
33 | 46 | | |
34 | 47 | | |
35 | 48 | | |
| |||
0 commit comments