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/configs/__init__.py | 4 ++-- fg21sim/data/__init__.py | 4 ++-- fg21sim/extragalactic/__init__.py | 4 ++-- fg21sim/extragalactic/clusters/__init__.py | 4 ++-- fg21sim/extragalactic/pointsources/__init__.py | 2 +- fg21sim/galactic/__init__.py | 8 ++++---- fg21sim/galactic/snr.py | 6 ++++-- fg21sim/utils/__init__.py | 4 ++-- fg21sim/webui/__init__.py | 4 ++-- fg21sim/webui/handlers/__init__.py | 17 ++++++++++------- 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 +# Copyright (c) 2016-2018 Weitian LI # 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 +# Copyright (c) 2016,2018 Weitian LI # 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 +# Copyright (c) 2016-2018 Weitian LI # 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 +# Copyright (c) 2016-2018 Weitian LI # 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 # 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 +# 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 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 +# Copyright (c) 2016-2018 Weitian LI # 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 +# Copyright (c) 2016,2018 Weitian LI # 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 +# Copyright (c) 2016,2018 Weitian LI # 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 -- cgit v1.2.2