aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-09 22:17:06 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-09 22:17:06 +0800
commite2d5281609750da823c229856359f8edcb77bd37 (patch)
treec14e109be734e6c9db984d7488d4b50940fa426f /fg21sim
parent45e63d7b69a77bda12aa44aea4a4effc2ba90e53 (diff)
downloadfg21sim-e2d5281609750da823c229856359f8edcb77bd37.tar.bz2
utils/healpix.py: fix logging import; minor style fixes
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/utils/healpix.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/fg21sim/utils/healpix.py b/fg21sim/utils/healpix.py
index acd85ef..294c588 100644
--- a/fg21sim/utils/healpix.py
+++ b/fg21sim/utils/healpix.py
@@ -25,13 +25,12 @@ hpx2healpix:
from datetime import datetime, timezone
+import logging
import numpy as np
import healpy as hp
from astropy.io import fits
-from .. import logging
-
logger = logging.getLogger(__name__)
@@ -297,10 +296,8 @@ def _make_hpx_header(header, append_history=None, append_comment=None):
header["PV2_2"] = (3, "HPX K parameter (latitude)")
logger.info("Made HPX FITS header")
#
- header["DATE"] = (
- datetime.now(timezone.utc).astimezone().isoformat(),
- "File creation date"
- )
+ header["DATE"] = (datetime.now(timezone.utc).astimezone().isoformat(),
+ "File creation date")
comments = [
'The HPX coordinate system is an reorganization of the HEALPix',
'data without regridding or interpolation, which is described in',
@@ -338,10 +335,8 @@ def _make_healpix_header(header, nside,
header["LASTPIX"] = (npix-1, "Last pixel # (0 based)")
logger.info("Made HEALPix FITS header")
#
- header["DATE"] = (
- datetime.now(timezone.utc).astimezone().isoformat(),
- "File creation date"
- )
+ header["DATE"] = (datetime.now(timezone.utc).astimezone().isoformat(),
+ "File creation date")
#
if append_history is not None:
logger.info("HEALPix FITS header: append history")