Skip to content

Commit

Permalink
Added/revised informational messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlpstsci committed Jan 17, 2025
1 parent 2ddef6a commit eda8f64
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ number of the code change for that issue. These PRs can be viewed at:
==================

- Added new header keywords and match requirements for relative fitting. [#1860]

- Further changes/tuning to improve the alignment results after deprecated Photutils
functionality was upgraded. [#nnnn]


3.9.0 (16-Dec-2024)
Expand Down
2 changes: 2 additions & 0 deletions drizzlepac/haputils/astrometric_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,8 @@ def build_auto_kernel(imgarr, whtarr, fwhm=3.0, threshold=None, source_box=7,
kernel_fwhm = fwhm
kernel = build_gaussian_kernel(fwhm, npixels=source_box)

log.info(f"Finished build_auto_kernel")

return (kernel, kernel_psf), kernel_fwhm


Expand Down
10 changes: 3 additions & 7 deletions drizzlepac/haputils/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,21 +495,17 @@ def align_to_gaia(
headerlet_filenames=headerlet_filenames, fit_label=fit_label
)
else:
log.warning("No satisfactory fit found for any catalog.")
log.warning("No satisfactory fit found for any catalog. No correction to absolute astrometric frame applied.\n")
raise ValueError

except Exception:
# Report a problem with the alignment
if fit_label.upper().strip() == "SVM":
log.warning(
"EXCEPTION encountered in align_to_gaia for the FilteredProduct.\n"
)
"EXCEPTION encountered in align_to_gaia for the FilterProduct. Proceeding with previous best solution.\n")
else:
log.warning(
"EXCEPTION encountered in align_to_gaia for the SkyCellProduct.\n"
)
log.warning("No correction to absolute astrometric frame applied.\n")
log.warning("Proceeding with previous best solution.\n")
"EXCEPTION encountered in align_to_gaia for the SkyCellProduct. Proceeding with previous best solution.\n")

# Only write out the traceback if in "debug" mode since not being able to
# align the data to an absolute astrometric frame is not actually a failure.
Expand Down

0 comments on commit eda8f64

Please sign in to comment.