From df238cb5cb76356315ec5478ff67748121d491bf Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 3 Dec 2017 19:47:47 +0800 Subject: minor updates --- astro/eor_window.py | 3 ++- astro/oskar/fits2skymodel.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'astro') diff --git a/astro/eor_window.py b/astro/eor_window.py index 5d84e1c..d4ac3fa 100755 --- a/astro/eor_window.py +++ b/astro/eor_window.py @@ -79,7 +79,8 @@ class PS2D: self.infile = infile with fits.open(infile) as f: self.header = f[0].header - self.ps2d = f[0].data[0, :, :] # errors ignored + self.ps2d = f[0].data[0, :, :] + self.ps2d_err = (f[0].data[1, :, :] + f[0].data[2, :, :]) / 2 self.freqc = self.header["Freq_C"] self.freqmin = self.header["Freq_Min"] self.freqmax = self.header["Freq_Max"] diff --git a/astro/oskar/fits2skymodel.py b/astro/oskar/fits2skymodel.py index e280705..bcbb328 100755 --- a/astro/oskar/fits2skymodel.py +++ b/astro/oskar/fits2skymodel.py @@ -39,7 +39,7 @@ from astropy.wcs import WCS logging.basicConfig(level=logging.INFO, format="[%(levelname)s:%(lineno)d] %(message)s") -logger = logging.getLogger(os.path.basename(sys.argv[0])) +logger = logging.getLogger() class SkyModel: -- cgit v1.2.2