From 8cada31f2decadcb49b74e658cd2729333e99b84 Mon Sep 17 00:00:00 2001
From: Gregory Ashton <gregory.ashton@ligo.org>
Date: Fri, 8 Feb 2019 14:07:10 +1100
Subject: [PATCH] Quick fix of flake8 issues

---
 bilby/gw/utils.py | 4 ++--
 setup.py          | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bilby/gw/utils.py b/bilby/gw/utils.py
index 43520d01d..69b78cc69 100644
--- a/bilby/gw/utils.py
+++ b/bilby/gw/utils.py
@@ -491,7 +491,7 @@ def gracedb_to_json(gracedb, outdir=None):
         outfilepath = os.path.join(outdir, '{}.json'.format(gracedb))
         logger.info('Writing candidate to {}'.format(outfilepath))
         with open(outfilepath, 'w') as outfile:
-                json.dump(json_output, outfile, indent=2)
+            json.dump(json_output, outfile, indent=2)
 
     return json_output
 
@@ -528,7 +528,7 @@ def gw_data_find(observatory, gps_start_time, duration, calibration,
 
     if query_type is None:
         logger.warning('No query type provided. This may prevent data from being read.')
-        if observatory_code is 'V':
+        if observatory_code == 'V':
             query_type = 'V1Online'
         else:
             query_type = '{}_HOFT_C0{}'.format(observatory, calibration)
diff --git a/setup.py b/setup.py
index 62990546d..9e1dc01e7 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ def get_long_description():
     """ Finds the README and reads in the description """
     here = os.path.abspath(os.path.dirname(__file__))
     with open(os.path.join(here, 'README.rst')) as f:
-            long_description = f.read()
+        long_description = f.read()
     return long_description
 
 
-- 
GitLab