Skip to content

Commit

Permalink
Supress Dask divide notices in SNAPHU unwrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Pechnikov committed Aug 23, 2024
1 parent e1b572b commit c35bb03
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pygmtsar/pygmtsar/Stack_unwrap_snaphu.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ def snaphu(self, phase, corr=None, conf=None, conncomp=False, debug=False):
import subprocess
from datetime import datetime
import uuid
import warnings
# suppress Dask warning "RuntimeWarning: invalid value encountered in divide"
warnings.filterwarnings('ignore')
warnings.filterwarnings('ignore', module='dask')
warnings.filterwarnings('ignore', module='dask.core')
# Filter out Dask "Restarting worker" warnings
warnings.filterwarnings("ignore", module="distributed.nanny")
# disable "distributed.utils_perf - WARNING - full garbage collections ..."
try:
from dask.distributed import utils_perf
Expand Down

0 comments on commit c35bb03

Please sign in to comment.