Loading csst_common/io.py +0 −8 Original line number Diff line number Diff line Loading @@ -328,14 +328,6 @@ def delete_section( return header def get_proc_info(**kwargs): cards = [("BUILD", os.getenv("BUILD", default=""), "")] for k, v in kwargs.items(): cards.append((k, v, "")) header = fits.Header(cards=cards) return reformat_header(header, comment="PROCESSING INFORMATION") def append_meta_to_table_hdu(hdu: fits.BinTableHDU, meta: dict) -> fits.BinTableHDU: """Append meta information to a table HDU. Loading tests/test_io.py +0 −4 Original line number Diff line number Diff line Loading @@ -121,10 +121,6 @@ class TestFitsHeaderOps(unittest.TestCase): h_del = io.delete_section(h, title="WCS") self.assertEqual(len(h_del.cards), 7) def test_get_proc_info(self): proc_info = io.get_proc_info() self.assertEquals(proc_info["BUILD"], "") def test_generate_meta(self): h = io.generate_meta() self.assertIsInstance(h, dict) Loading Loading
csst_common/io.py +0 −8 Original line number Diff line number Diff line Loading @@ -328,14 +328,6 @@ def delete_section( return header def get_proc_info(**kwargs): cards = [("BUILD", os.getenv("BUILD", default=""), "")] for k, v in kwargs.items(): cards.append((k, v, "")) header = fits.Header(cards=cards) return reformat_header(header, comment="PROCESSING INFORMATION") def append_meta_to_table_hdu(hdu: fits.BinTableHDU, meta: dict) -> fits.BinTableHDU: """Append meta information to a table HDU. Loading
tests/test_io.py +0 −4 Original line number Diff line number Diff line Loading @@ -121,10 +121,6 @@ class TestFitsHeaderOps(unittest.TestCase): h_del = io.delete_section(h, title="WCS") self.assertEqual(len(h_del.cards), 7) def test_get_proc_info(self): proc_info = io.get_proc_info() self.assertEquals(proc_info["BUILD"], "") def test_generate_meta(self): h = io.generate_meta() self.assertIsInstance(h, dict) Loading