Skip to content

Commit

Permalink
pep8 requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
FusRoman committed Aug 31, 2022
1 parent 4dc3dd8 commit cf04f68
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ exclude =
docs/source/conf.py,
old,
build,
dist
dist
per-file-ignores =
../Fink_GRB/fink_grb/online/ztf_join_gcn.py:W503
2 changes: 2 additions & 0 deletions fink_grb/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
from importlib.resources import files
import logging

from fink_grb import __name__


def init_fink_grb(arguments):
"""
Expand Down
2 changes: 0 additions & 2 deletions fink_grb/online/gcn_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import fink_grb.online.gcn_reader as gr
from fink_grb.init import get_config, init_logging

from fink_grb import __name__


def signal_handler(signal, frame):
"""
Expand Down
10 changes: 5 additions & 5 deletions fink_grb/online/ztf_join_gcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from astropy.time import Time

from pyspark.sql import functions as F
from pyspark.sql.functions import pandas_udf, current_timestamp, expr, col
from pyspark.sql.functions import pandas_udf
from pyspark.sql.types import DoubleType

from fink_broker.sparkUtils import init_sparksession, connect_to_raw_database
Expand Down Expand Up @@ -90,17 +90,17 @@ def ztf_join_gcn_stream(arguments):

config = get_config(arguments)
logger = init_logging()
spark = init_sparksession("fink_grb")
_ = init_sparksession("fink_grb")

NSIDE = 4

night = arguments["--night"]
exit_after = arguments["--exit_after"]

ztf_datapath_prefix = config["PATH"]["online_ztf_data_prefix"]
ztf_rawdatapath = ztf_datapath_prefix + '/raw'
scitmpdatapath = ztf_datapath_prefix + '/science'
checkpointpath_sci_tmp = ztf_datapath_prefix + '/science_checkpoint'
ztf_rawdatapath = ztf_datapath_prefix + "/raw"
scitmpdatapath = ztf_datapath_prefix + "/science"
checkpointpath_sci_tmp = ztf_datapath_prefix + "/science_checkpoint"

df_ztf_stream = connect_to_raw_database(
ztf_rawdatapath
Expand Down

0 comments on commit cf04f68

Please sign in to comment.