diff --git a/pygmtsar/pygmtsar/Stack_unwrap_snaphu.py b/pygmtsar/pygmtsar/Stack_unwrap_snaphu.py index 5451642..30e1220 100644 --- a/pygmtsar/pygmtsar/Stack_unwrap_snaphu.py +++ b/pygmtsar/pygmtsar/Stack_unwrap_snaphu.py @@ -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