Commit 997db128 authored by Médéric Boquien's avatar Médéric Boquien

Adapt pcigale-plots to nothreading().

parent 51c93b5e
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment