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 ...@@ -17,7 +17,7 @@ import matplotlib.pyplot as plt
import multiprocessing as mp import multiprocessing as mp
import numpy as np import numpy as np
from pcigale.utils import read_table 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): def pool_initializer(counter):
...@@ -29,7 +29,7 @@ def pool_initializer(counter): ...@@ -29,7 +29,7 @@ def pool_initializer(counter):
global gbl_counter global gbl_counter
# Limit the number of threads to 1 if we use MKL in order to limit the # Limit the number of threads to 1 if we use MKL in order to limit the
# oversubscription of the CPU/RAM. # oversubscription of the CPU/RAM.
nothread() nothreading()
gbl_counter = counter gbl_counter = counter
......
...@@ -17,7 +17,7 @@ import multiprocessing as mp ...@@ -17,7 +17,7 @@ import multiprocessing as mp
import numpy as np import numpy as np
import pkg_resources import pkg_resources
from scipy import stats 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 # Name of the file containing the best models information
BEST_RESULTS = "results.fits" BEST_RESULTS = "results.fits"
...@@ -33,7 +33,7 @@ def pool_initializer(counter): ...@@ -33,7 +33,7 @@ def pool_initializer(counter):
global gbl_counter global gbl_counter
# Limit the number of threads to 1 if we use MKL in order to limit the # Limit the number of threads to 1 if we use MKL in order to limit the
# oversubscription of the CPU/RAM. # oversubscription of the CPU/RAM.
nothread() nothreading()
gbl_counter = counter gbl_counter = counter
......
...@@ -16,7 +16,7 @@ import matplotlib.pyplot as plt ...@@ -16,7 +16,7 @@ import matplotlib.pyplot as plt
import multiprocessing as mp import multiprocessing as mp
import numpy as np import numpy as np
from pcigale.utils import read_table 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): def pool_initializer(counter):
...@@ -28,7 +28,7 @@ def pool_initializer(counter): ...@@ -28,7 +28,7 @@ def pool_initializer(counter):
global gbl_counter global gbl_counter
# Limit the number of threads to 1 if we use MKL in order to limit the # Limit the number of threads to 1 if we use MKL in order to limit the
# oversubscription of the CPU/RAM. # oversubscription of the CPU/RAM.
nothread() nothreading()
gbl_counter = counter gbl_counter = counter
......
...@@ -22,7 +22,7 @@ from scipy.constants import c ...@@ -22,7 +22,7 @@ from scipy.constants import c
from pcigale.data import Database from pcigale.data import Database
from pcigale.utils import read_table from pcigale.utils import read_table
import matplotlib.gridspec as gridspec 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 # Name of the file containing the best models information
BEST_RESULTS = "results.fits" BEST_RESULTS = "results.fits"
...@@ -48,7 +48,7 @@ def pool_initializer(counter): ...@@ -48,7 +48,7 @@ def pool_initializer(counter):
global gbl_counter global gbl_counter
# Limit the number of threads to 1 if we use MKL in order to limit the # Limit the number of threads to 1 if we use MKL in order to limit the
# oversubscription of the CPU/RAM. # oversubscription of the CPU/RAM.
nothread() nothreading()
gbl_counter = counter 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