Skip to content

Commit

Permalink
black update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoughlin committed Mar 12, 2024
1 parent 96ec29a commit d817bfb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions gwemopt/args.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module for parsing command line arguments
"""

import argparse

from gwemopt.paths import CATALOG_DIR, DEFAULT_LIGHTCURVE_DIR
Expand Down
32 changes: 16 additions & 16 deletions gwemopt/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,24 +803,24 @@ def timeallocation(params, map_struct, tile_structs, previous_coverage_struct=No
params_hold["config"][telescope]["exposurelist"] = exposurelist

if params["timeallocationType"] == "absmag":
tile_structs_hold[
telescope
] = gwemopt.tiles.absmag_tiles_struct(
params_hold,
config_struct,
telescope,
map_struct,
tile_structs_hold[telescope],
tile_structs_hold[telescope] = (
gwemopt.tiles.absmag_tiles_struct(
params_hold,
config_struct,
telescope,
map_struct,
tile_structs_hold[telescope],
)
)
elif params["timeallocationType"] == "powerlaw":
tile_structs_hold[
telescope
] = gwemopt.tiles.powerlaw_tiles_struct(
params_hold,
config_struct,
telescope,
map_struct,
tile_structs_hold[telescope],
tile_structs_hold[telescope] = (
gwemopt.tiles.powerlaw_tiles_struct(
params_hold,
config_struct,
telescope,
map_struct,
tile_structs_hold[telescope],
)
)

if params["timeallocationType"] == "absmag":
Expand Down
1 change: 1 addition & 0 deletions gwemopt/paths.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module for defining paths to data directories.
"""

from pathlib import Path

DATA_DIR = Path(__file__).parent.absolute().joinpath("data")
Expand Down

0 comments on commit d817bfb

Please sign in to comment.