From 20b428146982bd762390c17f83e5e46e955d8859 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 26 Aug 2017 20:34:13 +0800 Subject: sky.py: Replace @header.setter with method "merge_header()" * Avoid the duplicate "@header.setter" in the inherited classes * Update get-healpix-patch --- bin/get-healpix-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/get-healpix-patch') diff --git a/bin/get-healpix-patch b/bin/get-healpix-patch index 2fa21c6..9d82ffd 100755 --- a/bin/get-healpix-patch +++ b/bin/get-healpix-patch @@ -101,7 +101,7 @@ def main(): image = scipy.ndimage.gaussian_filter(image, sigma=sigma) logger.info("Smoothed sky patch using Gaussian filter of " + "sigma = %.2f [pixel]" % sigma) - sky.header = hpheader.copy(strip=True) + sky.merge_header(hpheader.copy(strip=True)) sky.add_history(" ".join(sys.argv)) sky.data = image sky.write(args.outfile, clobber=args.clobber) -- cgit v1.2.2