Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def get_remote_path(path):
raise runtime_exception('Unexpected value for config["remote_provider"]: {config["remote_provider"]}')


localrules: fetch_epic

rule fetch_epic:
output:
filepath="EPIC/{PATH}"
Expand All @@ -94,9 +96,9 @@ rule fetch_epic:
cache: True
retries: 3
shell: """
xrdcp --debug 2 root://dtn-eic.jlab.org//volatile/eic/{output.filepath} {output.filepath}
xrdcp --debug 2 root://dtn-eic.jlab.org//volatile/eic/EPIC/{wildcards.PATH} {output.filepath}
""" if use_xrootd else """
mc cp S3/eictest/{output.filepath} {output.filepath}
mc cp S3/eictest/EPIC/{wildcards.PATH} {output.filepath}
""" if use_s3 else f"""
echo 'Unexpected value for config["remote_provider"]: {config["remote_provider"]}'
exit 1
Expand Down
Loading