GalSim-developers / GalSim

The modular galaxy image simulation toolkit. Documentation:
http://galsim-developers.github.io/GalSim/
Other
228 stars 107 forks source link

Enable Eval within List in config #1223

Closed jmeyers314 closed 1 year ago

jmeyers314 commented 1 year ago

I was trying to figure out how to simulate all Rubin sensors in ImSim except the guiders and came up with this snippet:

  det_num:
    type: List
    items: $[i for i in range(205) if i not in [189, 190, 193, 194, 197, 198, 201, 202]]  # no guiders

The Eval within the List currently produces galsim.errors.GalSimConfigError: items entry for type=List is not list-like., but is fixed on this PR.