Skip to content

Commit

Permalink
switch to fork so that the expensive lsst environment isn't re-import…
Browse files Browse the repository at this point in the history
…ed in every subprocess
  • Loading branch information
jchiang87 committed Sep 25, 2019
1 parent ba9c13e commit 629eaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/desc/imsim/atmPSF.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(self, airmass, rawSeeing, band, rng,
self.screen_scale = screen_scale
self.logger = logger

ctx = multiprocessing.get_context('spawn')
ctx = multiprocessing.get_context('fork')
self.atm = galsim.Atmosphere(mp_context=ctx, **self._getAtmKwargs())
self.aper = galsim.Aperture(diam=8.36, obscuration=0.61,
lam=self.wlen_eff, screen_list=self.atm)
Expand Down

0 comments on commit 629eaf0

Please sign in to comment.