Skip to main content

RECAST for ATLAS

DOI

CI pre-commit.ci status PyPI version

Ruff

ATLAS tools to facilitate integration of ATLAS analyses into RECAST

Getting Started

Install

recast-atlas is installable from PyPI using pip inside of your Python virtual environment

python -m pip install recast-atlas

CLI API

The recast-atlas CLI API:

$ recast --help
Usage: recast [OPTIONS] COMMAND [ARGS]...

Options:
  -l, --loglevel TEXT
  --help               Show this message and exit.

Commands:
  auth       Authentication Commands (to gain access to internal data)
  backends   The RECAST computational backends.
  catalogue  The RECAST Analysis Catalogue
  ci         Helper Commands for CI systems
  retrieve   Retrieve RECAST Results from asynchronous submissions
  run        Run a RECAST Workflow synchronously
  software   Build Container Images for RECAST
  status     Get the Status of a asynchronous submission
  submit     Submit a RECAST Workflow asynchronously
  tests      Run a test

Running RECAST

recast-atlas aims to enable both local execution as well as asynchronous execution on a REANA cluster.

Docker backend

Example: Run the example from the ATLAS Exotics Rome Workshop 2018 using the (default) docker backend.

Install recast-atlas from PyPI

python -m pip install --upgrade recast-atlas coolname

Submit the RECAST workflow, orchestrated in a recast/recastatlas Docker container

recast run examples/rome --backend docker --tag "docker-$(coolname 2)"

Local backend

Example: Run the example from the ATLAS Exotics Rome Workshop 2018 using the local backend.

Install recast-atlas with the local extra

python -m pip install --upgrade 'recast-atlas[local]' coolname

Submit the RECAST workflow to run locally

PACKTIVITY_DOCKER_CMD_MOD="-u root" recast run examples/rome --backend local --tag "local-$(coolname 2)"

The local backend orchestrates the workflow graph locally, but note that the different workflow steps still run in Linux containers.

REANA cluster backend

Example: Asynchronously run the example from the ATLAS Exotics Rome Workshop 2018 using the reana backend.

Install recast-atlas with the reana extra

python -m pip install --upgrade 'recast-atlas[reana]' coolname

Authenticate to use the REANA cluster (remember to clean up later with eval $(recast auth destroy))

# Set these variables to your personal secret values
export RECAST_AUTH_USERNAME="<your RECAST auth username>"
export RECAST_AUTH_PASSWORD="<your RECAST auth password>"
export RECAST_AUTH_TOKEN="<your RECAST auth token>"

eval "$(recast auth setup -a ${RECAST_AUTH_USERNAME} -a ${RECAST_AUTH_PASSWORD} -a ${RECAST_AUTH_TOKEN} -a default)"
eval "$(recast auth write --basedir authdir)"

export REANA_SERVER_URL=https://reana.cern.ch
export REANA_ACCESS_TOKEN="<your RECAST access token>"

Submit the RECAST workflow to the REANA cluster

reana_tag="reana-$(coolname 2)"
recast submit examples/rome --backend reana --tag "${reana_tag}"
# REANA_WORKON sets the workflow automatically
export REANA_WORKON="recast-${reana_tag}"

Monitor the state of the workflow on REANA

reana-client status
# or if REANA_WORKON not set
# reana-client status --workflow "<the created tag>"

The examples/rome example doesn't have any result files, but if it did, you can download the results after the workflow succeeds

reana-client download --output-directory output
# or if REANA_WORKON not set
# reana-client download --workflow "<the created tag>" --output-directory output

Clean up the environment of personal information in environmental variables

eval $(recast auth destroy)

On LXPLUS9

ssh lxplus9.cern.ch
source ~recast/public/setup.sh
recast catalogue ls
recast run examples/rome

Metadata

Release files for recast-atlas 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for recast-atlas 0.4.2
File Size Uploaded
recast_atlas-0.4.2.tar.gz 22.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for recast-atlas 0.4.2
File Interpreter ABI Platform
recast_atlas-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 54.1 kB

Release files / recast_atlas-0.4.2.tar.gz

Download URL recast_atlas-0.4.2.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a63db9d7b6adca3d1080dbc16920264f1f8181c5cf1c7d6db0a438a1dba21f84
BLAKE2b-256 checksum
How to use checksums
e0304e3157f8f7b4e02f49ef924707067197a4fd249cb7d755b7e60f263b3184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.4

Release files / recast_atlas-0.4.2-py3-none-any.whl

Download URL recast_atlas-0.4.2-py3-none-any.whl
Size 31.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fde9694431f1f78e971a4a9021e281046c150fcf480deb60785834a2498c2f7b
BLAKE2b-256 checksum
How to use checksums
9e28fcd99c651234a2e588648e99a4e763dc04a05fbef98ab45018076d24a5ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.20

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.17

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page