Skip to content

Commit

Permalink
pep8 requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
FusRoman committed Sep 1, 2022
1 parent 409dcd3 commit 7906379
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 7 additions & 5 deletions fink_grb/online/gcn_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def load_and_parse_gcn(gcn, gcn_rawdatapath, logger, logs=False):
logger : logger object
logger object for logs.
Returns
Returns
-------
None
Expand Down Expand Up @@ -135,7 +135,6 @@ def start_gcn_stream(arguments, logs=False):
logger.error("Config entry not found \n\t {}".format(e))
exit(1)


# Subscribe to topics and receive alerts
consumer.subscribe(INSTR_SUBSCRIBES)

Expand All @@ -149,15 +148,18 @@ def start_gcn_stream(arguments, logs=False):
exit(1)

if not os.path.exists(gcn_rawdatapath):
logger.error("Path of the gcn stream output not found : {}\nRun fink_grb init before".format(gcn_rawdatapath))

logger.error(
"Path of the gcn stream output not found : {}\nRun fink_grb init before".format(
gcn_rawdatapath
)
)

while True:
message = consumer.consume(timeout=2)

if len(message) != 0:
for gcn in message:

if logs:
logger.info("A new voevent is coming")
value = gcn.value()
Expand Down
4 changes: 1 addition & 3 deletions fink_grb/online/ztf_join_gcn.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import warnings

warnings.filterwarnings("ignore")

import pandas as pd
import numpy as np
import time
Expand All @@ -23,6 +20,7 @@
from fink_grb.init import get_config, init_logging
from fink_broker.science import ang2pix

warnings.filterwarnings("ignore")

def compute_healpix_column(spark_df, ra, dec, nside):
"""
Expand Down

0 comments on commit 7906379

Please sign in to comment.