-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imsim.py crashes if there are no stars in the instance catalog #67
Comments
We can probably fix this by putting
Then, the first catalog that contains objects will initialize the |
Do you want me to deal with this, or have you already done something? |
Let's hold off for now. There may be other related issues that come up as I go through my testing for the PRs. |
OK |
@danielsf I just tried your proposed fix, and it worked fine, so I'm ok with proceeding this way. |
Okay. I will just add it to the existing GalSimInterface PR |
I just merged the sims_GalSimInterface PR, including the fix to this bug. |
The problem is that when
phoSimStarCatalog.get_fitsFiles()
is called, there are no objects to be simulated and nobandPassDict
is created because ofhttps://github.com/lsst/sims_GalSimInterface/blob/master/python/lsst/sims/GalSimInterface/galSimCatalogs.py#L358
and this line in
imsim.py
https://github.com/LSSTDESC/imSim/blob/master/bin.src/imsim.py#L153
fails with
The text was updated successfully, but these errors were encountered: