Skip to content

Commit

Permalink
Black!
Browse files Browse the repository at this point in the history
Signed-off-by: Devansh Agarwal <[email protected]>
  • Loading branch information
devanshkv committed Oct 15, 2020
1 parent f872ef9 commit 723503e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 35 deletions.
13 changes: 5 additions & 8 deletions bin/your_candmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,28 +226,25 @@ def cand2h5(cand_val):
if not values.no_log_file:
if values.verbose:
logging.basicConfig(
filename=log_filename,
level=logging.DEBUG,
format=logging_format,
filename=log_filename, level=logging.DEBUG, format=logging_format,
)
else:
logging.basicConfig(
filename=log_filename,
level=logging.INFO,
format=logging_format
filename=log_filename, level=logging.INFO, format=logging_format
)
else:
if values.verbose:
logging.basicConfig(
level=logging.DEBUG,
format=logging_format,
handlers=[RichHandler(rich_tracebacks=True)]
handlers=[RichHandler(rich_tracebacks=True)],
)
else:
logging.basicConfig(
level=logging.INFO,
format=logging_format,
handlers=[RichHandler(rich_tracebacks=True)])
handlers=[RichHandler(rich_tracebacks=True)],
)

if -1 not in values.gpu_id:
from numba.cuda.cudadrv.driver import CudaAPIError
Expand Down
8 changes: 2 additions & 6 deletions bin/your_combine_mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,15 +578,11 @@ def all_files(direct, nstart, nsamp, outdir):
if not values.no_log_file:
if values.verbose:
logging.basicConfig(
filename=log_filename,
level=logging.DEBUG,
format=logging_format,
filename=log_filename, level=logging.DEBUG, format=logging_format,
)
else:
logging.basicConfig(
filename=log_filename,
level=logging.INFO,
format=logging_format
filename=log_filename, level=logging.INFO, format=logging_format
)
else:
if values.verbose:
Expand Down
8 changes: 2 additions & 6 deletions bin/your_heimdall.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,11 @@
if not values.no_log_file:
if values.verbose:
logging.basicConfig(
filename=log_filename,
level=logging.DEBUG,
format=logging_format,
filename=log_filename, level=logging.DEBUG, format=logging_format,
)
else:
logging.basicConfig(
filename=log_filename,
level=logging.INFO,
format=logging_format
filename=log_filename, level=logging.INFO, format=logging_format
)
else:
if values.verbose:
Expand Down
8 changes: 2 additions & 6 deletions bin/your_rfimask.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,11 @@
if not values.no_log_file:
if values.verbose:
logging.basicConfig(
filename=log_filename,
level=logging.DEBUG,
format=logging_format,
filename=log_filename, level=logging.DEBUG, format=logging_format,
)
else:
logging.basicConfig(
filename=log_filename,
level=logging.INFO,
format=logging_format
filename=log_filename, level=logging.INFO, format=logging_format
)
else:
if values.verbose:
Expand Down
12 changes: 3 additions & 9 deletions bin/your_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@
required=False,
)
parser.add_argument(
"--no_progress",
help="Do not show the progress bar",
action="store_false",
"--no_progress", help="Do not show the progress bar", action="store_false",
)
parser.add_argument(
"-r",
Expand Down Expand Up @@ -133,15 +131,11 @@
if not values.no_log_file:
if values.verbose:
logging.basicConfig(
filename=log_filename,
level=logging.DEBUG,
format=logging_format,
filename=log_filename, level=logging.DEBUG, format=logging_format,
)
else:
logging.basicConfig(
filename=log_filename,
level=logging.INFO,
format=logging_format
filename=log_filename, level=logging.INFO, format=logging_format
)
else:
if values.verbose:
Expand Down

0 comments on commit 723503e

Please sign in to comment.