Skip to content

Commit

Permalink
test splitting times
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed May 28, 2020
1 parent aa99b5c commit b7e8a38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pynrc/nrc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ def wfed_coeff(filter_or_bp, force=False, save=True, save_name=None, nsplit=None

# Double check we're not requesting too many processors
nsplit = nsplit_max if nsplit > nsplit_max else nsplit
# nsplit = npos
nsplit = npos

# Create worker arguments with kwargs as an argument input
worker_args = []
Expand All @@ -1502,6 +1502,7 @@ def wfed_coeff(filter_or_bp, force=False, save=True, save_name=None, nsplit=None
worker_args.append((args, kw))

if nsplit>1:
# If splitting, then cannot split in subprocess for each PSF (ie., across wavelengths)
poppy_nproc_prev = poppy.conf.n_processes
poppy.conf.n_processes = 1

Expand Down Expand Up @@ -1723,6 +1724,7 @@ def field_coeff_resid(filter_or_bp, coeff0, force=False, save=True, save_name=No

# Multiprocessing?
if nsplit > 1:
# If splitting, then cannot split in subprocess for each PSF (ie., across wavelengths)
poppy_nproc_prev = poppy.conf.n_processes
poppy.conf.n_processes = 1

Expand Down

0 comments on commit b7e8a38

Please sign in to comment.