From 6d78f8af7daca7d21e325ebae15df78a35f14a1c Mon Sep 17 00:00:00 2001 From: Eli Rykoff Date: Mon, 29 Jun 2026 14:33:18 -0700 Subject: [PATCH] Turn off multiprocessing in treecorr (used by treegp). --- python/lsst/meas/algorithms/gp_interpolation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/lsst/meas/algorithms/gp_interpolation.py b/python/lsst/meas/algorithms/gp_interpolation.py index 21d799c88..2c343cbf0 100644 --- a/python/lsst/meas/algorithms/gp_interpolation.py +++ b/python/lsst/meas/algorithms/gp_interpolation.py @@ -24,10 +24,15 @@ from lsst.geom import Box2I, Point2I from lsst.afw.geom import SpanSet import copy +import treecorr import treegp import logging +# We need to explicitly turn off multiprocessing in treecorr which is used +# by treegp. +treecorr.set_max_omp_threads(1) + __all__ = [ "InterpolateOverDefectGaussianProcess", "GaussianProcessTreegp",