From 369193732e23ad4db35a6dab1bec8ecfff224e3d Mon Sep 17 00:00:00 2001 From: teald Date: Wed, 2 Apr 2025 15:42:22 -0700 Subject: [PATCH] fix(dragons): Un-deprecate add_header_to_table. This un-deprecates add_header_to_table as it is now used in DRAGONS. The need for this function was brought up during the pyOpenSci review, and looking back at that it seems like the concerns there are still addressed (now that there's a docstring, and it's not used elsewhere in astrodata). --- astrodata/fits.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/astrodata/fits.py b/astrodata/fits.py index 344466a..c8a1ef8 100644 --- a/astrodata/fits.py +++ b/astrodata/fits.py @@ -289,10 +289,6 @@ def header_for_table(table): return fits_header -@deprecated( - "The functionality of this function is now covered by the " - "astropy.io.fits.Header class." -) def add_header_to_table(table): """Add a FITS header to a table's metadata. Deprecated. @@ -300,11 +296,6 @@ def add_header_to_table(table): metadata. If a header is already present in the table's metadata, it will ensure it's up to date with the table's columns. - Warning - ------- - This function is deprecated and will be removed in a future version. Its - functionality is covered by Tables. - Arguments --------- table : `astropy.table.Table`