Closed jmeyers314 closed 1 year ago
I think I'm seeing the same thing using a fairly generic config. Here's one I've been using to make darks:
gal.type: SkyCatObj
image.nobjects: 0
image.random_seed: 42
image.sky_level: 0
input.atm_psf: ''
psf.items: ""
psf.type: Gaussian
psf.fwhm: 0.7
input.instance_catalog: ''
input.opsim_meta_dict.file_name: /home/jchiang/work/DESC/imSim/tests/data/small_opsim_9683.db
input.opsim_meta_dict.visit: 11873
input.sky_catalog: ""
input.tree_rings.only_dets:
- R22_S11
- R22_S12
modules:
- imsim
output.camera: LsstCam
output.det_num.first: 0
output.dir: dark_frames
output.exp_time: 300
output.file_name:
format: eimage_%s-%03d-%s.fits
items:
- dark
- 0
- $det_name
type: FormattedStr
output.nfiles: 2
output.nproc: 2
output.only_dets:
- R22_S11
- R22_S12
output.readout.file_name:
format: amp_%s-%03d-%s.fits.fz
items:
- dark
- 0
- $det_name
type: FormattedStr
output.timeout: 100000.0
output.truth: ''
stamp.world_pos.type: SkyCatWorldPos
stamp.fft_sb_thresh: 1e5
stamp.size: 40
template: imsim-config
and here's the error output:
Process-1: Exception caught for file 0 = dark_frames/eimage_dark-000-R22_S11.fits
Traceback (most recent call last):
File "/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-5.1.0/lib/python3.10/site-packages/galsim/config/util.py", line 732, in worker
result = job_func(**kwargs)
File "/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-5.1.0/lib/python3.10/site-packages/galsim/config/output.py", line 248, in BuildFile
data = builder.buildImages(output, config, file_num, image_num, obj_num, ignore, logger)
File "/home/jchiang/work/DESC/imSim/imsim/ccd.py", line 101, in buildImages
image = galsim.config.BuildImage(base, image_num, obj_num, logger=logger)
File "/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-5.1.0/lib/python3.10/site-packages/galsim/config/image.py", line 265, in BuildImage
SetupConfigImageSize(config, xsize, ysize, logger)
File "/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-5.1.0/lib/python3.10/site-packages/galsim/config/image.py", line 212, in SetupConfigImageSize
wcs = BuildWCS(image, 'wcs', config, logger)
File "/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-5.1.0/lib/python3.10/site-packages/galsim/config/wcs.py", line 103, in BuildWCS
wcs = builder.buildWCS(param, base, logger)
File "/home/jchiang/work/DESC/imSim/imsim/batoid_wcs.py", line 498, in buildWCS
kwargs['telescope'] = GetInputObj('telescope', config, base, 'telescope')['base']
TypeError: 'load_telescope_dict_Proxy' object is not subscriptable
I think this is a bug with the
InputProxy
stuff for the telescope loader, but haven't been able to pinpoint the problem yet. (In particular, I'm not sure if the problem is GalSim or ImSim).Arises with the following wavefront sensor donut config. This works fine when
output.nproc=1
, but not whenoutput.nproc=2
.