13 from pathlib
import Path
15 from caf
import backends
18 from basf2
import B2INFO, logging, LogLevel, LogInfo
19 currentInfo = logging.get_info(LogLevel.INFO)
20 logging.set_info(LogLevel.INFO, currentInfo | LogInfo.TIMESTAMP)
23 probcut = float(sys.argv[1])
if len(sys.argv) == 2
else 0.001
27 with open(
'runlist')
as runlist:
28 lines = runlist.readlines()
30 input_files.append(line.rstrip(
'\n'))
43 job1 = backends.Job(
"CDC_Colllector")
44 job1.output_dir = str(Path(root_dir).absolute())
45 job1.working_dir = str(Path(root_dir).absolute())
48 job1.cmd = [
'basf2',
'run_collector.py', str(probcut)]
50 job1.input_sandbox_files.append(
"run_collector.py")
59 job1.input_files = input_files
64 job1.max_files_per_subjob = 1
66 job1.backend_args[
'queue'] =
's'
75 B2INFO(
"Are we done?")
77 B2INFO(
"Not done yet, will sleep")