Closed danielsf closed 5 years ago
No. We have not used the ic_validation
code. Can you point me to an example of how it should be run?
You should be able to use the script in the utils
folder. Running from the command line should work as:
python run_validation.py /path/to/catalogs obsHistId /path/to/SN/SEDs
@jbkalmbach Thanks for the nudge. I had introduced a bug such that the sprinkler wasn't adding the lens galaxy for a supernova unless the supernova itself was visible. Your script caught it. Good job.
Happy Thanksgiving!
@jbkalmbach This is the branch I was talking about, in case you forgot
This is being supplanted by
This PR updates
sprinkler.py
to reflect the new column names in the Twinkles data files.It also increases the speed of the sprinkler by 1) only calling
find_lens_candidates
ifself.cached_sprinkling == False
2) appending rows toupdated_catalog
in a single batched call tonp.append
, rather than multiple single-row calls.