Replies: 1 comment
-
|
Tagging @nkhadka21 here :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was using get_dp0_images function to create coadd cutouts. However, mag_zero_point array is always empty. When I traced back the issue, I figured that
If coadd_injection is True, mag_zero_visit array is not updated, so it is returned empty. Also, there is a warning on multiple_lens_injection.ipynb in which lens_inejection_fast function is called, that calls get_dp0_images ,
warnings.warn( ../notebooks/.local/lib/python3.12/site-packages/lenstronomy/Data/psf.py#line=94): UserWarning: Input PSF model has at least one negative element, which is unphysical except for a PSF of an interferometric array.I suspect it might be due to this problem, since image_simulation gives sim_api mag_zero_point in kwargs_band, which is given to data_util.magnitude2cps() function as far as I've followed in lenstronomy.
Beta Was this translation helpful? Give feedback.
All reactions