Skip to content
Snippets Groups Projects

TurboSpruce test for 2025

Open Nicole Skidmore requested to merge turbospruce_2025test into master
###############################################################################
# (c) Copyright 2025 CERN for the benefit of the LHCb Collaboration #
# #
# This software is distributed under the terms of the GNU General Public #
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". #
# #
# In applying this licence, CERN does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
# Run locally
# ./run lbexec :spruce_overlap r.yaml >& log &
@@ -147,7 +157,10 @@ def turbospruce_job(options: Options):
for line, l_config in line_config.items():
if l_config["stream"]: # Check if stream is already set by line attribute
break
if l_config["stream"] not in streaming_config.keys():
raise Exception(f"Line {line} has set a stream not in use") # Check its a valid stream
else:
break
for stream, s_config in streaming_config.items(): # Set stream using stream config
if line in s_config:
@@ -156,7 +169,7 @@ def turbospruce_job(options: Options):
break
if l_config["stream"] is None: # Fail if line is not in any stream
#print(f"Miss {line}")
raise Exception(f"Line {line} not found in any stream")
raise Exception(f"Line {line} not found in any stream - please populate the `stream` attibute of your line")
custom_prescales = {}
Loading