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).
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 generatesindex
only for classes that inherit fromgalsim.catalog
(or something similar).