LSSTDESC / sims_ci_pipe

Integration Pipelines for DESC simulations
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

GalSim version too old for mp_context kwarg? #17

Open kadrlica opened 4 years ago

kadrlica commented 4 years ago

When trying to call imSim, I get the error:

imsim.py v479028-i_grid/phosim_cat_479028.txt --sensor "R:2,2 S:1,1" --psf Atmospheric --outdir fits
CameraMapper INFO: Loading Posix exposure registry from .
Traceback (most recent call last):
  File "/global/u2/k/kadrlica/projects/sims_ci_pipe/imSim/bin/imsim.py", line 73, in <module>
    psf = desc.imsim.make_psf(args.psf, obs_md, log_level=args.log_level)
  File "/global/u2/k/kadrlica/projects/sims_ci_pipe/imSim/python/desc/imsim/imSim.py", line 875, in make_psf
    logger=logger, **kwds)
  File "/global/u2/k/kadrlica/projects/sims_ci_pipe/imSim/python/desc/imsim/atmPSF.py", line 110, in __init__
    self.atm = galsim.Atmosphere(mp_context=ctx, **self._getAtmKwargs())
  File "/cvmfs/sw.lsst.eu/linux-x86_64/lsst_distrib/w_2019_23/stack/miniconda3-4.5.12-1172c30/Linux64/galsim/2.1.4.lsst+5/lib/python/galsim/phase_screens.py", line 617, in Atmosphere
    return PhaseScreenList([AtmosphericScreen(**kw) for kw in utilities.dol_to_lod(kwargs, nmax)])
  File "/cvmfs/sw.lsst.eu/linux-x86_64/lsst_distrib/w_2019_23/stack/miniconda3-4.5.12-1172c30/Linux64/galsim/2.1.4.lsst+5/lib/python/galsim/phase_screens.py", line 617, in <listcomp>
    return PhaseScreenList([AtmosphericScreen(**kw) for kw in utilities.dol_to_lod(kwargs, nmax)])
TypeError: __init__() got an unexpected keyword argument 'mp_context'

I'm guessing that this is a newer addition to GalSim, and we may need to update the version of the DM stack to capture it.

jchiang87 commented 4 years ago

I think the mp_context option was added in galsim v2.2. I would have thought that the v20 stack has that version or later. It's definitely in the more recent weeklies.

kadrlica commented 4 years ago

Yep, that's where I'm going with this. I started with w_2020_20 which has v2.2.3. Looks like the weekly is missing a sims build, so I'll try another. Using v20 would be nice.

Looking at Heather's comment here w_2020_24 seems like a good bet.

kadrlica commented 4 years ago

Ok, so indeed w_2020_24 works for GalSim. However, with this stack version EUPS complains about not being able to setup healpy when trying to build sims_ci_pipe, though the w_2020_24 env has healpy installed. I think this is keeping sims_ci_pipe from building in a consistent environment that can be used to run imsim. I'll keep looking for some consistent env.