Closed rmjarvis closed 3 months ago
Now the catalog is read once for a single CCD
However it is still reading it again for each CCD that is simulated.
However it is still reading it again for each CCD that is simulated.
Yes, it selects the galaxies in the input catalog that will fall on (or near) the CCD, so that is required.
Address #464 take two.
I removed the approx_nobject keyword, and now implement getApproxNObjects() by just counting the lines in the instance catalog file. This will always be >= the number of objects in that file that fall on the image, so it works as a good approx value. And it's quite fast, so should address the original problem about reading the file twice taking a long time.