From 997db1282b27b44b78ceac12bf8ce3de66a7a37e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9d=C3=A9ric=20Boquien?= Date: Tue, 13 Aug 2019 14:00:31 +0200 Subject: [PATCH] Adapt pcigale-plots to nothreading(). --- pcigale_plots/plot_types/chi2.py | 4 ++-- pcigale_plots/plot_types/mock.py | 4 ++-- pcigale_plots/plot_types/pdf.py | 4 ++-- pcigale_plots/plot_types/sed.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pcigale_plots/plot_types/chi2.py b/pcigale_plots/plot_types/chi2.py index 632c9aa8..78876e05 100644 --- a/pcigale_plots/plot_types/chi2.py +++ b/pcigale_plots/plot_types/chi2.py @@ -17,7 +17,7 @@ import matplotlib.pyplot as plt import multiprocessing as mp import numpy as np from pcigale.utils import read_table -from pcigale.analysis_modules.utils import Counter, nothread +from pcigale.analysis_modules.utils import Counter, nothreading def pool_initializer(counter): @@ -29,7 +29,7 @@ def pool_initializer(counter): global gbl_counter # Limit the number of threads to 1 if we use MKL in order to limit the # oversubscription of the CPU/RAM. - nothread() + nothreading() gbl_counter = counter diff --git a/pcigale_plots/plot_types/mock.py b/pcigale_plots/plot_types/mock.py index c3937108..cb9180c0 100644 --- a/pcigale_plots/plot_types/mock.py +++ b/pcigale_plots/plot_types/mock.py @@ -17,7 +17,7 @@ import multiprocessing as mp import numpy as np import pkg_resources from scipy import stats -from pcigale.analysis_modules.utils import Counter, nothread +from pcigale.analysis_modules.utils import Counter, nothreading # Name of the file containing the best models information BEST_RESULTS = "results.fits" @@ -33,7 +33,7 @@ def pool_initializer(counter): global gbl_counter # Limit the number of threads to 1 if we use MKL in order to limit the # oversubscription of the CPU/RAM. - nothread() + nothreading() gbl_counter = counter diff --git a/pcigale_plots/plot_types/pdf.py b/pcigale_plots/plot_types/pdf.py index e0ec944c..53865e0f 100644 --- a/pcigale_plots/plot_types/pdf.py +++ b/pcigale_plots/plot_types/pdf.py @@ -16,7 +16,7 @@ import matplotlib.pyplot as plt import multiprocessing as mp import numpy as np from pcigale.utils import read_table -from pcigale.analysis_modules.utils import Counter, nothread +from pcigale.analysis_modules.utils import Counter, nothreading def pool_initializer(counter): @@ -28,7 +28,7 @@ def pool_initializer(counter): global gbl_counter # Limit the number of threads to 1 if we use MKL in order to limit the # oversubscription of the CPU/RAM. - nothread() + nothreading() gbl_counter = counter diff --git a/pcigale_plots/plot_types/sed.py b/pcigale_plots/plot_types/sed.py index d86480e7..7e2467ba 100644 --- a/pcigale_plots/plot_types/sed.py +++ b/pcigale_plots/plot_types/sed.py @@ -22,7 +22,7 @@ from scipy.constants import c from pcigale.data import Database from pcigale.utils import read_table import matplotlib.gridspec as gridspec -from pcigale.analysis_modules.utils import Counter, nothread +from pcigale.analysis_modules.utils import Counter, nothreading # Name of the file containing the best models information BEST_RESULTS = "results.fits" @@ -48,7 +48,7 @@ def pool_initializer(counter): global gbl_counter # Limit the number of threads to 1 if we use MKL in order to limit the # oversubscription of the CPU/RAM. - nothread() + nothreading() gbl_counter = counter -- GitLab