Skip to content

Commit

Permalink
blacken
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Feb 21, 2024
1 parent 10a84f3 commit 299393b
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions des_archive_access/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ def download_archive_file(archive_path, source_dir):
`source_dir`/`archive_path`.
"""

if 'DESREMOTE_RSYNC_USER' in os.environ:
user = os.environ['DESREMOTE_RSYNC_USER'] + '@'
if "DESREMOTE_RSYNC_USER" in os.environ:
user = os.environ["DESREMOTE_RSYNC_USER"] + "@"
else:
user = ""

Expand Down Expand Up @@ -451,16 +451,16 @@ def download_archive_file(archive_path, source_dir):
def main_sync_tile_data():
parser = argparse.ArgumentParser(
prog="des-archive-access-sync-tile-data",
description="Sync all data for a given coadd tile from NCSA to FNAL."
description="Sync all data for a given coadd tile from NCSA to FNAL.",
)
parser.add_argument(
'--tilename',
"--tilename",
required=True,
help='tile to process',
help="tile to process",
)
parser.add_argument(
'--band',
help='band to process',
"--band",
help="band to process",
required=True,
)
parser.add_argument(
Expand All @@ -480,8 +480,8 @@ def main_sync_tile_data():

with tempfile.TemporaryDirectory() as tmpdir:
# make the config file
config_path = os.path.join(tmpdir, 'pizza_cutter_config.yaml')
with open(config_path, 'w') as config_file:
config_path = os.path.join(tmpdir, "pizza_cutter_config.yaml")
with open(config_path, "w") as config_file:
config_file.write(PIZZA_CUTTER_CONFIG)

meds_dir = os.path.join(tmpdir, "MEDS_DIR")
Expand Down Expand Up @@ -521,8 +521,9 @@ def main_sync_tile_data():
("Y6A2_MEDS_V3", True),
]
import easyaccess as ea

try:
conn = ea.connect(section='desoper')
conn = ea.connect(section="desoper")
curs = conn.cursor()
for tag, per_band in tags_to_query:
sql = f"""\
Expand Down

0 comments on commit 299393b

Please sign in to comment.