Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 12, 2024
1 parent b9729d3 commit a0dc826
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/coffea/dataset_tools/dataset_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ def do_replicas(self, mode=None, selection=None):
ind = list(
map(
int,
Prompt.ask("Enter list of sites index to be used", default="0").split(" "),
Prompt.ask(
"Enter list of sites index to be used", default="0"
).split(" "),
)
)
sites_to_use = [list(sorted_sites.keys())[i] for i in ind]
Expand Down
6 changes: 3 additions & 3 deletions src/coffea/dataset_tools/rucio_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def get_xrootd_sites_map():
if "prefix" not in proc:
if "rules" in proc:
for rule in proc["rules"]:
sites_xrootd_access[site["rse"]][
rule["lfn"]
] = rule["pfn"]
sites_xrootd_access[site["rse"]][rule["lfn"]] = (
rule["pfn"]
)
else:
sites_xrootd_access[site["rse"]] = proc["prefix"]

Expand Down

0 comments on commit a0dc826

Please sign in to comment.