Skip to content
Draft
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion law
Submodule law updated 85 files
+1 −1 .flake8
+13 −6 .github/workflows/lint_and_test.yml
+1 −1 LICENSE
+10 −6 README.md
+3 −0 assets/logo_profile.png
+4 −0 docs/api/parser.rst
+1 −0 docs/contrib/index.rst
+19 −0 docs/contrib/mattermost.rst
+1 −1 examples/loremipsum/index.ipynb
+53 −3 examples/singularity_sandboxes/tasks.py
+176 −3 law.cfg.example
+2 −1 law/__init__.py
+1 −1 law/__version__.py
+1 −1 law/cli/completion.sh
+7 −3 law/cli/index.py
+7 −3 law/cli/run.py
+33 −14 law/config.py
+5 −0 law/contrib/arc/config.py
+27 −19 law/contrib/arc/job.py
+7 −0 law/contrib/arc/workflow.py
+2 −1 law/contrib/awkward/__init__.py
+3 −2 law/contrib/awkward/formatter.py
+38 −0 law/contrib/awkward/util.py
+2 −2 law/contrib/cms/__init__.py
+3 −1 law/contrib/cms/config.py
+117 −55 law/contrib/cms/job.py
+9 −4 law/contrib/cms/sandbox.py
+29 −5 law/contrib/cms/scripts/delegate_myproxy.py
+17 −0 law/contrib/cms/scripts/setup_cmssw.sh
+230 −23 law/contrib/cms/util.py
+29 −12 law/contrib/cms/workflow.py
+5 −2 law/contrib/docker/sandbox.py
+1 −1 law/contrib/gfal/target.py
+11 −3 law/contrib/git/__init__.py
+28 −8 law/contrib/git/scripts/bundle_repository.sh
+47 −3 law/contrib/git/scripts/repository_checksum.sh
+5 −0 law/contrib/glite/config.py
+33 −19 law/contrib/glite/job.py
+7 −0 law/contrib/glite/workflow.py
+5 −0 law/contrib/htcondor/config.py
+69 −36 law/contrib/htcondor/job.py
+9 −1 law/contrib/htcondor/workflow.py
+4 −0 law/contrib/lsf/config.py
+25 −16 law/contrib/lsf/job.py
+9 −1 law/contrib/lsf/workflow.py
+13 −0 law/contrib/mattermost/__init__.py
+21 −0 law/contrib/mattermost/config.py
+101 −0 law/contrib/mattermost/notification.py
+67 −0 law/contrib/mattermost/parameter.py
+9 −3 law/contrib/mercurial/__init__.py
+4 −4 law/contrib/mercurial/scripts/bundle_repository.sh
+45 −1 law/contrib/mercurial/scripts/repository_checksum.sh
+82 −27 law/contrib/pyarrow/util.py
+1 −1 law/contrib/root/formatter.py
+38 −17 law/contrib/root/util.py
+5 −2 law/contrib/singularity/sandbox.py
+9 −9 law/contrib/slack/parameter.py
+5 −0 law/contrib/slurm/config.py
+34 −22 law/contrib/slurm/job.py
+10 −2 law/contrib/slurm/workflow.py
+9 −2 law/contrib/tasks/__init__.py
+9 −9 law/contrib/telegram/parameter.py
+62 −25 law/contrib/wlcg/util.py
+13 −5 law/decorator.py
+62 −9 law/job/base.py
+49 −47 law/job/law_job.sh
+11 −5 law/logger.py
+63 −8 law/notification.py
+58 −5 law/parameter.py
+27 −1 law/parser.py
+63 −28 law/patches.py
+1 −0 law/sandbox/base.py
+80 −38 law/target/collection.py
+21 −6 law/target/file.py
+77 −77 law/target/formatter.py
+10 −6 law/target/local.py
+61 −39 law/target/mirrored.py
+7 −3 law/target/remote/base.py
+72 −34 law/task/base.py
+108 −29 law/task/interactive.py
+301 −39 law/util.py
+13 −12 law/workflow/base.py
+15 −5 law/workflow/local.py
+71 −3 law/workflow/remote.py
+2 −0 setup.py
4 changes: 3 additions & 1 deletion processor/tasks/CROWNFriend.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,9 @@ def run(self):
# the quantities of a scope have to be read from a rootfile of that scope,
# the scope is the last folder in the path of the rootfile
scope_inputs = [
target for target in rootfiles if target.path.split("/")[-2] == scope
target
for target in rootfiles
if target.path.split("/")[-2] == scope
]
if len(scope_inputs) == 0:
raise Exception(f"No input rootfile found for scope {scope}")
Expand Down
4 changes: 4 additions & 0 deletions processor/tasks/scripts/compile_crown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ mkdir -p "${BUILDDIR}"

# --- CMake Configuration ---
# We use the compilers and libraries provided by the container's Conda 'env'
# Pin CMAKE_PREFIX_PATH to the ROOT install found via root-config: on hosts
# that also have a system ROOT RPM installed, find_package(ROOT) can otherwise
# silently resolve to that instead of the intended CVMFS/conda install.
if cmake "${CROWNFOLDER}" \
-DANALYSIS="${ANALYSIS}" \
-DCONFIG="${CONFIG}" \
Expand All @@ -46,6 +49,7 @@ if cmake "${CROWNFOLDER}" \
-DTHREADS="${EXECUTABLE_THREADS}" \
-DINSTALLDIR="${INSTALLDIR}" \
-DPRODUCTION=True \
-DCMAKE_PREFIX_PATH="$(root-config --prefix)" \
-B"${BUILDDIR}" 2>&1 | tee "${BUILDDIR}/cmake.log"; then
echo "CMake finished successfully"
else
Expand Down
4 changes: 4 additions & 0 deletions processor/tasks/scripts/compile_crown_friends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ mkdir -p "${BUILDDIR}"

# --- CMake Configuration ---
# We use the compilers and libraries provided by the container's Conda 'env'
# Pin CMAKE_PREFIX_PATH to the ROOT install found via root-config: on hosts
# that also have a system ROOT RPM installed, find_package(ROOT) can otherwise
# silently resolve to that instead of the intended CVMFS/conda install.
if cmake "${CROWNFOLDER}" \
-DANALYSIS="${ANALYSIS}" \
-DCONFIG="${CONFIG}" \
Expand All @@ -45,6 +48,7 @@ if cmake "${CROWNFOLDER}" \
-DPRODUCTION=True \
-DFRIENDS=true \
-DQUANTITIESMAP="${QUANTITIESMAP}" \
-DCMAKE_PREFIX_PATH="$(root-config --prefix)" \
-B"${BUILDDIR}" 2>&1 | tee "${BUILDDIR}/cmake.log"; then
echo "CMake finished successfully"
else
Expand Down
4 changes: 4 additions & 0 deletions processor/tasks/scripts/compile_crown_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ mkdir -p "${BUILDDIR}"

# --- CMake Configuration ---
# We use the compilers and libraries provided by the container's Conda 'env'
# Pin CMAKE_PREFIX_PATH to the ROOT install found via root-config: on hosts
# that also have a system ROOT RPM installed, find_package(ROOT) can otherwise
# silently resolve to that instead of the intended CVMFS/conda install.
if cmake "${CROWNFOLDER}" \
-DBUILD_CROWNLIB_ONLY=ON \
-DINSTALLDIR="${INSTALLDIR}" \
-DANALYSIS="${ANALYSIS}" \
-DCMAKE_PREFIX_PATH="$(root-config --prefix)" \
-B"${BUILDDIR}" 2>&1 | tee "${BUILDDIR}/cmake.log"; then
echo "CMake finished successful."
else
Expand Down
2 changes: 1 addition & 1 deletion sample_database
Loading