aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/galactic
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-10-31 22:18:50 +0800
committerAaron LI <aly@aaronly.me>2018-10-31 22:18:50 +0800
commit1eefe2c863b87fa19ab40046d96aa23863ff8077 (patch)
tree2e25b4420dbf7a550e6666d50cf6a88779f69f6a /fg21sim/galactic
parenta88b5bd561d5c09f053e29c40561423ba4c4e3d0 (diff)
downloadfg21sim-1eefe2c863b87fa19ab40046d96aa23863ff8077.tar.bz2
PEP8 fix
Diffstat (limited to 'fg21sim/galactic')
-rw-r--r--fg21sim/galactic/__init__.py8
-rw-r--r--fg21sim/galactic/snr.py6
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