From b78d40df26dafb8b3ba0b354dec74a3217c9e41d Mon Sep 17 00:00:00 2001
From: David Rafferty <rafferty@strw.leidenuniv.nl>
Date: Mon, 29 Oct 2012 11:57:37 +0000
Subject: [PATCH] Task #3743: Fix to pyfits.getheader() call.

---
 CEP/PyBDSM/src/python/functions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CEP/PyBDSM/src/python/functions.py b/CEP/PyBDSM/src/python/functions.py
index b3769185543..2bd0d1b44bd 100755
--- a/CEP/PyBDSM/src/python/functions.py
+++ b/CEP/PyBDSM/src/python/functions.py
@@ -1183,7 +1183,7 @@ def convert_pyrap_header(pyrap_image):
 
     tfile = tempfile.NamedTemporaryFile(delete=False)
     pyrap_image.tofits(tfile.name)
-    hdr = pyfits.get_header(tfile.name)
+    hdr = pyfits.getheader(tfile.name)
     return hdr
 
 
-- 
GitLab