sweverett / Balrog-GalSim

Modules for GalSim that will be useful for DES images in conjunction with Balrog.
MIT License
5 stars 5 forks source link

Only generate `index` fields if needed #45

Open sweverett opened 6 years ago

sweverett commented 6 years ago

Currently, an index array is generated for all Balrog injections given the number of injected objects. However, this causes issues for simulation runs for input types that are not catalogs. We should add a check that generates index only for classes that inherit from galsim.catalog (or something similar).