diff options
Diffstat (limited to 'fg21sim/galactic')
-rw-r--r-- | fg21sim/galactic/__init__.py | 8 | ||||
-rw-r--r-- | fg21sim/galactic/snr.py | 6 |
2 files changed, 8 insertions, 6 deletions
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 <liweitianux@live.com> +# Copyright (c) 2016,2018 Weitian LI <wt@liwt.net> # 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 |