Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
CIGALE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cigale
CIGALE
Commits
997db128
Commit
997db128
authored
Aug 13, 2019
by
Médéric Boquien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt pcigale-plots to nothreading().
parent
51c93b5e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
pcigale_plots/plot_types/chi2.py
pcigale_plots/plot_types/chi2.py
+2
-2
pcigale_plots/plot_types/mock.py
pcigale_plots/plot_types/mock.py
+2
-2
pcigale_plots/plot_types/pdf.py
pcigale_plots/plot_types/pdf.py
+2
-2
pcigale_plots/plot_types/sed.py
pcigale_plots/plot_types/sed.py
+2
-2
No files found.
pcigale_plots/plot_types/chi2.py
View file @
997db128
...
@@ -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
,
nothread
ing
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
()
nothread
ing
()
gbl_counter
=
counter
gbl_counter
=
counter
...
...
pcigale_plots/plot_types/mock.py
View file @
997db128
...
@@ -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
,
nothread
ing
# 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
()
nothread
ing
()
gbl_counter
=
counter
gbl_counter
=
counter
...
...
pcigale_plots/plot_types/pdf.py
View file @
997db128
...
@@ -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
,
nothread
ing
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
()
nothread
ing
()
gbl_counter
=
counter
gbl_counter
=
counter
...
...
pcigale_plots/plot_types/sed.py
View file @
997db128
...
@@ -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
,
nothread
ing
# 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
()
nothread
ing
()
gbl_counter
=
counter
gbl_counter
=
counter
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment