aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
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
parenta88b5bd561d5c09f053e29c40561423ba4c4e3d0 (diff)
downloadfg21sim-1eefe2c863b87fa19ab40046d96aa23863ff8077.tar.bz2
PEP8 fix
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/configs/__init__.py4
-rw-r--r--fg21sim/data/__init__.py4
-rw-r--r--fg21sim/extragalactic/__init__.py4
-rw-r--r--fg21sim/extragalactic/clusters/__init__.py4
-rw-r--r--fg21sim/extragalactic/pointsources/__init__.py2
-rw-r--r--fg21sim/galactic/__init__.py8
-rw-r--r--fg21sim/galactic/snr.py6
-rw-r--r--fg21sim/utils/__init__.py4
-rw-r--r--fg21sim/webui/__init__.py4
-rw-r--r--fg21sim/webui/handlers/__init__.py17
10 files changed, 31 insertions, 26 deletions
diff --git a/fg21sim/configs/__init__.py b/fg21sim/configs/__init__.py
index af3cd2f..797ad4c 100644
--- a/fg21sim/configs/__init__.py
+++ b/fg21sim/configs/__init__.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2016-2017 Weitian LI <weitian@aaronly.me>
+# Copyright (c) 2016-2018 Weitian LI <wt@liwt.net>
# MIT license
-from .manager import ConfigManager
+from .manager import ConfigManager # noqa: F401
diff --git a/fg21sim/data/__init__.py b/fg21sim/data/__init__.py
index f1805fe..eb23582 100644
--- a/fg21sim/data/__init__.py
+++ b/fg21sim/data/__init__.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
+# Copyright (c) 2016,2018 Weitian LI <wt@liwt.net>
# MIT license
-from .snr import SNRDataGreen, retrieve_snr_data_green
+from .snr import SNRDataGreen, retrieve_snr_data_green # noqa: F401
diff --git a/fg21sim/extragalactic/__init__.py b/fg21sim/extragalactic/__init__.py
index 9d3c1d9..6e81163 100644
--- a/fg21sim/extragalactic/__init__.py
+++ b/fg21sim/extragalactic/__init__.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2016-2018 Weitian LI <weitian@aaronly.me>
+# Copyright (c) 2016-2018 Weitian LI <wt@liwt.net>
# MIT license
-from .clusters import GalaxyClusters
+from .clusters import GalaxyClusters # noqa: F401
diff --git a/fg21sim/extragalactic/clusters/__init__.py b/fg21sim/extragalactic/clusters/__init__.py
index 16824e9..b3bfe66 100644
--- a/fg21sim/extragalactic/clusters/__init__.py
+++ b/fg21sim/extragalactic/clusters/__init__.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2016-2017 Weitian LI <weitian@aaronly.me>
+# Copyright (c) 2016-2018 Weitian LI <wt@liwt.net>
# MIT license
-from .main import GalaxyClusters
+from .main import GalaxyClusters # noqa: F401
diff --git a/fg21sim/extragalactic/pointsources/__init__.py b/fg21sim/extragalactic/pointsources/__init__.py
index 4c64c98..ea60028 100644
--- a/fg21sim/extragalactic/pointsources/__init__.py
+++ b/fg21sim/extragalactic/pointsources/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2016 Zhixian MA <zxma_sjtu@qq.com>
# MIT license
-from .pointsources import PointSources
+from .pointsources import PointSources # noqa: F401
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
diff --git a/fg21sim/utils/__init__.py b/fg21sim/utils/__init__.py
index 1a8b2d3..ddf2a73 100644
--- a/fg21sim/utils/__init__.py
+++ b/fg21sim/utils/__init__.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2016-2017 Weitian LI <weitian@aaronly.me>
+# Copyright (c) 2016-2018 Weitian LI <wt@liwt.net>
# MIT license
-from .logging import setup_logging
+from .logging import setup_logging # noqa: F401
diff --git a/fg21sim/webui/__init__.py b/fg21sim/webui/__init__.py
index 745c947..ec2fc8f 100644
--- a/fg21sim/webui/__init__.py
+++ b/fg21sim/webui/__init__.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
+# Copyright (c) 2016,2018 Weitian LI <wt@liwt.net>
# MIT license
-from .app import Application
+from .app import Application # noqa: F401
diff --git a/fg21sim/webui/handlers/__init__.py b/fg21sim/webui/handlers/__init__.py
index 1783b4b..6cc56bf 100644
--- a/fg21sim/webui/handlers/__init__.py
+++ b/fg21sim/webui/handlers/__init__.py
@@ -1,9 +1,12 @@
-# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
+# Copyright (c) 2016,2018 Weitian LI <wt@liwt.net>
# MIT license
-from .index import IndexHandler
-from .login import LoginHandler
-from .configs import ConfigsAJAXHandler
-from .console import ConsoleAJAXHandler
-from .products import ProductsAJAXHandler, ProductsDownloadHandler
-from .websocket import WSHandler
+from .index import IndexHandler # noqa: F401
+from .login import LoginHandler # noqa: F401
+from .configs import ConfigsAJAXHandler # noqa: F401
+from .console import ConsoleAJAXHandler # noqa: F401
+from .products import ( # noqa: F401
+ ProductsAJAXHandler,
+ ProductsDownloadHandler,
+)
+from .websocket import WSHandler # noqa: F401