Skip to content
Snippets Groups Projects
Snakefile 1.04 KiB
Newer Older
configfile: "config.yaml"

if config["remote"] == "S3":
    from snakemake.remote.S3 import RemoteProvider as S3RemoteProvider
    provider = S3RemoteProvider(
        endpoint_url="https://eics3.sdcc.bnl.gov:9000",
        access_key_id=os.environ["S3_ACCESS_KEY"],
        secret_access_key=os.environ["S3_SECRET_KEY"],
    )
    remote_path = lambda path: f"eictest/{path}"
elif config["remote"] == "XRootD":
    from snakemake.remote.XRootD import RemoteProvider as XRootDRemoteProvider
    provider = XRootDRemoteProvider(
        stay_on_remote=False,
    )
    remote_path = lambda path: f"root://dtn-eic.jlab.org//work/eic2/{path}"
else:
    raise ValueError(f"Unexpected config[\"remote\"] = {config['remote']}")

include: "benchmarks/backgrounds/Snakefile"
Dmitry Kalinkin's avatar
Dmitry Kalinkin committed
include: "benchmarks/barrel_ecal/Snakefile"

rule matplotlibrc:
    output:
        ".matplotlibrc",
    run:
        with open(output[0], "wt") as fp:
            fp.write("backend: Agg\n")
            # interactive mode prevents plt.show() from blocking
            fp.write("interactive : True\n")