From 9e44e4096c6e8dfe041eeb25a844e74adf223a50 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 6 Dec 2017 10:53:34 +0800 Subject: astro/fitscube.py: improve formatting --- astro/fits/fitscube.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/astro/fits/fitscube.py b/astro/fits/fitscube.py index 976e690..bb6a16b 100755 --- a/astro/fits/fitscube.py +++ b/astro/fits/fitscube.py @@ -268,9 +268,9 @@ def cmd_info(args): image = np.abs(image) mean[i] = np.mean(image) std[i] = np.std(image) - print("Slice +/- :") + print("Slice +/- :") for i, z in enumerate(zvalues): - print("* %12.4e: %-12.4e %-12.4e" % (z, mean[i], std[i])) + print("* %12.4e: %12.4e %12.4e" % (z, mean[i], std[i])) if args.outfile: data = np.column_stack([zvalues, mean, std]) np.savetxt(args.outfile, data, header="z mean std") @@ -333,10 +333,10 @@ def cmd_calibrate(args): cube.write(args.outfile, clobber=args.clobber) print("Calibrated FITS cube wrote to: %s" % args.outfile) - print("Slice +/- " + - " ") + print("Slice +/- " + + " ") for i, z in enumerate(zvalues): - print("* %12.4e: %-12.4e %-12.4e %-12.4e %.6f" % + print("* %12.4e: %12.4e %12.4e %12.4e %.6f" % (z, mean[i], std[i], mean_new[i], coef[i])) if args.save_info: -- cgit v1.2.2