Skip to content

Commit

Permalink
Add basic logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykubica committed Jan 11, 2025
1 parent 01592b5 commit c599f41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kbmod/run_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ def append_ra_dec_to_results(workunit, results):

# Compute the predicted (RA, dec) positions for each trajectory in global space.
if workunit.wcs is not None:
logger.info("Found common WCS. Adding global_ra and global_dec columns.")

skypos = workunit.wcs.pixel_to_world(xp, yp)
results.table["global_ra"] = skypos.ra.degree
results.table["global_dec"] = skypos.dec.degree
Expand All @@ -371,6 +373,8 @@ def append_ra_dec_to_results(workunit, results):
results.table["img_ra"] = all_ra
results.table["img_dec"] = all_dec
else:
logger.info("No common WCS found. Skipping global_ra and global_dec columns.")

# If there are no global WCS, we just predict per image.
all_ra = np.zeros((len(results), num_times))
all_dec = np.zeros((len(results), num_times))
Expand Down

0 comments on commit c599f41

Please sign in to comment.