Skip to content
Snippets Groups Projects
Commit 8cada31f authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Quick fix of flake8 issues

parent be6ddfe2
No related branches found
No related tags found
No related merge requests found
Pipeline #47716 passed
......@@ -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)
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment