From 1eefe2c863b87fa19ab40046d96aa23863ff8077 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 31 Oct 2018 22:18:50 +0800 Subject: PEP8 fix --- fg21sim/galactic/__init__.py | 8 ++++---- fg21sim/galactic/snr.py | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'fg21sim/galactic') diff --git a/fg21sim/galactic/__init__.py b/fg21sim/galactic/__init__.py index 5bdd659..0cf0b17 100644 --- a/fg21sim/galactic/__init__.py +++ b/fg21sim/galactic/__init__.py @@ -1,6 +1,6 @@ -# Copyright (c) 2016 Weitian LI +# Copyright (c) 2016,2018 Weitian LI # MIT license -from .synchrotron import Synchrotron -from .freefree import FreeFree -from .snr import SuperNovaRemnants +from .synchrotron import Synchrotron # noqa: F401 +from .freefree import FreeFree # noqa: F401 +from .snr import SuperNovaRemnants # noqa: F401 diff --git a/fg21sim/galactic/snr.py b/fg21sim/galactic/snr.py index 2e6d21c..f35337d 100644 --- a/fg21sim/galactic/snr.py +++ b/fg21sim/galactic/snr.py @@ -180,8 +180,10 @@ class SuperNovaRemnants: logger.info("SNRs catalog: filtered out due to incomplete data: " + "{0:d} objects".format(n_delete)) # Filter out the SNRs lying outside the sky region (e.g., a patch) - skycoords = SkyCoord(l=self.catalog["glon"], b=self.catalog["glat"], - frame="galactic", unit="deg") + skycoords = SkyCoord(l=self.catalog["glon"], # noqa: E741 + b=self.catalog["glat"], + frame="galactic", + unit="deg") inside = self.sky.contains(skycoords) n_remain = inside.sum() n_delete = len(inside) - n_remain -- cgit v1.2.2